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...
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...
... Well a couple of ways to do it: Rough unchecked code would go like this @blownup = split /\//, $string; $blownup[$#blownup] = "new value"; $string =...
... 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...
... 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 ...
... If you need to replace "mechanical robots" with "human androids" then: @array =~ s/mechanical robots/human androids/ig; Take care, Paul Alapatt ...
... 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....
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...
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...
... 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...
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...
Hi all, sorry for posting offtopic message... In smtp.. after establishing telnet connection with mail exchange server.. and after giving series of commands...
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...
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...
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...
... Kishore> In smtp.. after establishing telnet connection with mail exchange server.. Kishore> and after giving series of commands like use Net::SMTP instead...
... 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...
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...
Okay .... you want to print the value "Fred".... go through the code @yes = @$perl; foreach $ha1 (@yes) { %val = %$ha1; print $val{'fname'}; last; } redstarfcs...
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...
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 ... -- ...
... 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 : ...