in reply to s/// operator and undef question...
But if I take of the /g switch:for ($target =~ /is/g) { s//are/; }
I get the following error message:for ($target =~ /is/) { s//are/; }
This is beginning to look like a bug to me.Modification of a read-only value attempted at eval.pl line 6.
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|