Im not sure if i have the whole picture here, maybe you have code afterwards for some special reason, BUT
Can you not just call your subroutine the most obvious way using just the name and pass in the argument.
use strict; my $text='abcdefgijkl'; test($text); sub test { print "\nokey!"; }
I may have it wrong though.
MonkPaul.
In reply to Re: Error Message when I use Strict
by MonkPaul
in thread Error Message when I use Strict
by tulsyan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |