rsiedl has asked for the wisdom of the Perl Monks concerning the following question:
My thinking was that this would assign the page_name.pl to $mdl, and leave the $page var as page_name.tmpl. But it doesnt...my $page = "page_name.tmpl"; my $mdl = $page =~ s/\.tmpl/\.pl/i;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Replace method
by virtualsue (Vicar) on Mar 13, 2006 at 01:01 UTC | |
by rsiedl (Friar) on Mar 13, 2006 at 01:20 UTC | |
|
Re: Replace method
by borisz (Canon) on Mar 12, 2006 at 23:26 UTC | |
|
Re: Replace method
by Fletch (Bishop) on Mar 13, 2006 at 00:11 UTC |