in reply to My my
Slightly OT: The other warnings shown in monkey_boy's example of running your code with warnings enabled, the ones about "main::printme() called too early to check prototype...", can be silenced by either declaring or defining the prototyped subroutine before the subroutine is ever invoked:
Or better yet: Just don't use Prototypes. See Far More than Everything You've Ever Wanted to Know about Prototypes in Perl -- by Tom Christiansen.c:\@Work\Perl\monks>perl -wMstrict -le "sub printme(); ;; my $x = 'a'; printme(); ;; $x = 'b'; printme(); ;; sub printme () { print qq{x: '$x'}; } " x: 'a' x: 'b'
Give a man a fish: <%-(-(-(-<
|
|---|