in reply to Parsing a string from a file
So what we can do is this:my @time = (1, 2, 3); my $counter = 5; my $s = "Today is $time[1] and you have seen this $counter times!"; print "$s";
my @time = (1, 2, 3); my $counter = 5; my $s = 'Today is $time[1] and you have seen this $counter times!'; warn $s; warn eval "\"$s\""; __END__ Today is $time[1] and you have seen this $counter times! at blah.pl li +ne 4. Today is 2 and you have seen this 5 times! at blah.pl line 5.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing a string from a file
by RayQ (Initiate) on Jun 11, 2005 at 16:09 UTC | |
by davidrw (Prior) on Jun 11, 2005 at 18:29 UTC |