Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

undef/defined &{$name} while "strict refs"

by anazawa (Scribe)
on Aug 21, 2012 at 01:42 UTC ( #988541=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # cat.pl
    use strict;
    ...
    my $walkable = defined &{ 'walk' };
    undef &{ 'walk' };
    &{ 'run' };
    
  2. or download this
    $ perl cat.pl
    Can't use string ("run") as a subroutine ref while "strict refs" in us
    +e at cat.pl line 9.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://988541]
Approved by GrandFather
Front-paged by ww
help
Chatterbox?
[stevieb]: I have got ready everything in a stable manner to go forward with a full-blown "Raspberry Pi with Perl" series, and at the same time "Automated testing locally for everything" series. A year it took. A year I've been waiting to do this.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-06-29 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.