Search the web
Sign In
New User? Sign Up
Perl_Official · Perl . CGI . Shell script
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 1769 - 1798 of 2062   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
1769
Quick Question. Lets say you have the following $string = "http://www.ford.com/index.cgi?item=1" I want to replace index.cgi?item=1 How do I do this. I can't...
Michael Muff
m2muff
Offline Send Email
Jun 3, 2005
6:16 am
1770
I'm having trouble. I read a file to an array. open (FILE, ......) @array=<FILE>; Now I want to replace multiple phrases(portions of a line) in the file with...
Michael Muff
m2muff
Offline Send Email
Jun 3, 2005
6:16 am
1771
... Well a couple of ways to do it: Rough unchecked code would go like this @blownup = split /\//, $string; $blownup[$#blownup] = "new value"; $string =...
Paul Alapatt
paulalapatt
Offline Send Email
Jun 3, 2005
5:16 pm
1772
... Michael> Quick Question. Michael> Lets say you have the following Michael> $string = "http://www.ford.com/index.cgi?item=1" Michael> I want to replace...
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 3, 2005
5:16 pm
1773
... @array=split("?", $string); $first=$array[0]; $secon=$array[1]; $string_now=$first."*".$second; print $string_now; This code should output...
Ntina Triantafilidou
ntina23gr
Offline Send Email
Jun 3, 2005
5:17 pm
1774
... Sorry, but my english are not good enought to understand what u mean. Please tell me what you want to do and I will help you if I can. I hope that ...
Ntina Triantafilidou
ntina23gr
Offline Send Email
Jun 3, 2005
5:17 pm
1775
... If you need to replace "mechanical robots" with "human androids" then: @array =~ s/mechanical robots/human androids/ig; Take care, Paul Alapatt ...
Paul Alapatt
paulalapatt
Offline Send Email
Jun 3, 2005
5:18 pm
1776
... Ntina> @array=split("?", $string); I doubt that you tried that. Because "split" will treat the first parameter as a regex. Note for you in the future....
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 3, 2005
11:29 pm
1777
The question mark is a special character, so you need to escape it with \ $string = "http://www.ford.com/index.cgi?item=1"; print "$string\n"; $string...
Mike Southern
mikesouthern
Offline Send Email
Jun 4, 2005
12:19 am
1778
Hi All I am new to Perl and I am into Testing ,I want to Get into Perl Automation Testing.So please Can any one Help me I want to Know How do u use perl in...
srinivas joshi
srinivasjoshi34
Offline Send Email
Jun 6, 2005
9:57 am
1779
... Dear Srinivas, Welcome to PERL. :) It would not be possible to write snippets on PERL Testing code, because it would depend on what is the 2nd app you wish...
Paul Alapatt
paulalapatt
Offline Send Email
Jun 6, 2005
5:04 pm
1780
Hi Paul Pattern match will not work in Array; i feel that the following code works fine print @array; foreach(@array) { $_ =~ s/mechanical robots/human...
Krishna R
krish_tamil
Offline Send Email
Jun 7, 2005
6:21 am
1781
Hi all, sorry for posting offtopic message... In smtp.. after establishing telnet connection with mail exchange server.. and after giving series of commands...
Kishore Balla
kishoreballa
Offline Send Email
Jun 9, 2005
1:48 pm
1782
Dear All, Right now I am in deep trouble to find a suitable solution to the following problem. I am truly in dire need of you help. I beg for your help. Please...
arinmuk
Offline Send Email
Jun 9, 2005
1:49 pm
1783
In Perl environment, there is a perl module – FTP.pm. In the directory “\2.3\perl5lib\Net\FTP.pm”, Client has already written the same module with the...
Arindam Mukherjee
arinmuk
Offline Send Email
Jun 9, 2005
1:50 pm
1784
But you can always explicitly prepend the Package name to a function name! ... But I think the main problem here is that the client has placed his FTP module...
fischron.external@...
dodekaedergu...
Offline Send Email
Jun 9, 2005
2:03 pm
1785
... Kishore> In smtp.. after establishing telnet connection with mail exchange server.. Kishore> and after giving series of commands like use Net::SMTP instead...
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 9, 2005
3:42 pm
1786
... Kishore> actually I was trying to write smtp protocal but I was trying to learn it as Kishore> I'm Trainee in a Email service provider... Then read RFC2821...
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 9, 2005
9:43 pm
1787
thanx randal for ur reply... actually I was trying to write smtp protocal but I was trying to learn it as I'm Trainee in a Email service provider... so.. I'm...
Kishore Balla
kishoreballa
Offline Send Email
Jun 9, 2005
9:43 pm
1788
I have this Array: $perl = [ { fname => 'Fred', lname => 'Flintstone', residence => 'Bedrock' }, { fname => 'Barney', lname => 'Rubble', residence =>...
redstarfcs
Offline
Jun 22, 2005
9:37 am
1789
Okay .... you want to print the value "Fred".... go through the code @yes = @$perl; foreach $ha1 (@yes) { %val = %$ha1; print $val{'fname'}; last; } redstarfcs...
skumar
psk_suresh
Offline Send Email
Jun 23, 2005
12:39 am
1790
... redstarfcs> I have this Array: redstarfcs> $perl = [ redstarfcs> { redstarfcs> fname => 'Fred', redstarfcs> lname => 'Flintstone', redstarfcs>...
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 23, 2005
12:39 am
1791
Hi, i beleive this is the way to reach 'fred'. print $perl->[0]->{'fname'}; redstarfcs <no_reply@yahoogroups.com> wrote: I have this Array: $perl = [ { fname...
Harish.H
hharish_harish
Offline Send Email
Jun 23, 2005
12:39 am
1792
Hello, Try this: print $$perl[0]{fname}; Regards, Georges ... NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Toolbar... Web/Wap :...
g.toullat@...
georges_toullat
Offline Send Email
Jun 23, 2005
12:39 am
1793
Hai, For getting Fred try this $perl = [ { fname => 'Fred', lname => 'Flintstone', residence => 'Bedrock' }, { fname =>...
k prasanna
kprasanna_79
Offline Send Email
Jun 23, 2005
12:39 am
1794
... Hi, Here's how, $perl = [ { fname=> 'Fred', lname=> 'Flintstone', residence=> 'Bedrock' }, { fname=> 'Barney', lname=> 'Rubble', residence=> 'Bedrock' } ];...
Pavan Kandepet
kandepet_pavan
Offline Send Email
Jun 23, 2005
12:40 am
1795
This is how: $perl->[0]->{fname} Also, please read about references. Try: `perldoc perlref` or `perldoc perlreftut` BTW, that's an array of hashes. HTH ... -- ...
Emanuel Gardaya Calso
egcalso
Offline Send Email
Jun 23, 2005
12:40 am
1796
... You can do that in this way: $perl->[0]->{'fname'}; This is referring the first anonymous hash, and in turn the key 'fname'. ... This can be achieved by : ...
Paul Alapatt
paulalapatt
Offline Send Email
Jun 23, 2005
12:42 am
1797
... I didn't know there's a perllol... hehe Checked it out, and there is. What does lol in perllol stand for? -- eman http://www.bloodpet.tk/ ||...
Emanuel Gardaya Calso
egcalso
Offline Send Email
Jun 23, 2005
9:46 am
1798
... skumar> %val = %$ha1; This *copies* the data. That's inefficient, unnecessary, and prevents updating the data. Please read other answers...
merlyn@...
merlynstoneh...
Online Now Send Email
Jun 24, 2005
2:07 am
Messages 1769 - 1798 of 2062   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help