logo       

Re: Whats wrong with the `=~ s///' line edit: msg#00363

perl-beginners

Subject: Re: Whats wrong with the `=~ s///' line edit

Harry Putnam wrote:
The regex (\"uri\".*?) Doesn't match at all so I would expect the $2
to return ''. But instead it appears to return the whole line.


No, the regex doesn't match anything so there is no substitution. $line is unmodified.


--
Just my 0.00000002 million dollars worth,
Shawn

Programming is as much about organization and communication
as it is about coding.

Regardless of how small the crowd is, there is always one in
it who has to find out the hard way that the laws of physics
apply to them too.


--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise