in reply to undef/defined &{$name} while "strict refs"
#!/usr/bin/perl -l use autodie; use common::sense; sub walk { use strict qw/refs/; use warnings FATAL => 'syntax'; print "Walk this!"; } sub run { use strict qw/refs/; use warnings FATAL => 'syntax'; print "Run with this!"; } my $walkable = defined &{ 'walk' }; undef &{'walk'}; my $runable = \&{ 'run' }; &$runable;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: undef/defined &{$name} while "strict refs"
by anazawa (Scribe) on Aug 21, 2012 at 03:22 UTC | |
by Anonymous Monk on Aug 21, 2012 at 06:43 UTC | |
by anazawa (Scribe) on Aug 21, 2012 at 07:04 UTC | |
by Anonymous Monk on Aug 21, 2012 at 07:22 UTC | |
by anazawa (Scribe) on Aug 21, 2012 at 07:58 UTC | |
|