wtolentino has asked for the wisdom of the Perl Monks concerning the following question:
... ... ... $nDateStamp = $month . $day . $year; $filename = '17000_DM161_082511.dat'; if (index($filename,$tDateStamp) != -1) { print "found\n"; # substitute the 082511 with the $nDateStamp # results in '17000_DM161_082411.dat }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable value substitution
by toolic (Bishop) on Aug 25, 2011 at 16:27 UTC | |
by wtolentino (Initiate) on Aug 25, 2011 at 17:34 UTC | |
|
Re: variable value substitution
by zentara (Cardinal) on Aug 25, 2011 at 16:33 UTC | |
|
Re: variable value substitution
by ww (Archbishop) on Aug 25, 2011 at 19:43 UTC | |
|
Re: variable value substitution
by ajose (Acolyte) on Aug 25, 2011 at 17:58 UTC |