in reply to variable reference to subroutine while "strict"
#!/usr/bin/perl -w use strict; my $ref=\&this; my $x=$ref->(); print "$x\n"; sub this {return "hi!"}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: variable reference to subroutine while "strict"
by halfcountplus (Hermit) on Apr 13, 2008 at 20:46 UTC |