On Oct 13, Dave Adams said:
my $text= 'hello'; my $text2 = 'bye'; my $text3 =~ s/$text/$text2/g; print $text3;
What are you expecting to happen? There is NOTHING in $text3, so trying to substitute all "hello"s for "bye"s will result in Perl telling you that you're using an uninitialized value ($text3).
Perhaps if you put something in $text3 FIRST, and THEN tried s///'ing it. -- Jeff "japhy" Pinyan % How can we ever be the sold short or RPI Acacia Brother #734 % the cheated, we who for every service http://www.perlmonks.org/ % have long ago been overpaid? http://princeton.pm.org/ % -- Meister Eckhart -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>