n00bsauce has asked for the wisdom of the Perl Monks concerning the following question:
The string 'this is a $1' is retrieved from a database so it can not simply be defined at a different point.my $outputString = 'this is a $1'; my $sampleData = "Testing 1 2 3"; my $searchString = "(Test).+"; if ($sampleData =~ m/$searchString/) { print $outputString."\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Uninitialized scalar inside a scalar?
by chromatic (Archbishop) on Jan 07, 2009 at 21:49 UTC | |
by n00bsauce (Initiate) on Jan 07, 2009 at 22:06 UTC | |
by kyle (Abbot) on Jan 07, 2009 at 22:15 UTC | |
by jethro (Monsignor) on Jan 07, 2009 at 22:44 UTC | |
by gwadej (Chaplain) on Jan 07, 2009 at 23:18 UTC | |
|
Re: Uninitialized scalar inside a scalar?
by AnomalousMonk (Archbishop) on Jan 08, 2009 at 03:16 UTC | |
by Anonymous Monk on Jan 08, 2009 at 15:21 UTC | |
by AnomalousMonk (Archbishop) on Jan 08, 2009 at 20:12 UTC |