On Jun 10, bob ackerman said: >On Monday, June 10, 2002, at 11:23 AM, aman cgiperl wrote: > >> $MSG is a link http://www.foo.com/dpt/index.html >> >> Is there anything else other than EOF, that can cause a while loop to exit >> when reading file? > >there is something that will stop the substitution - a slash in $MSG. >you could use a different character for the substitution: >$_ =~ s|##UF##|$MSG|g
Not true. $_ = "japhy"; $rep = "abc/def"; s/a../$rep/; print "<$_>\n"; # jabc/defy -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]