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;
In reply to Replace method by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |