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

Re: Variable "%data" is not available

by ikegami (Pope)
on Mar 21, 2011 at 20:53 UTC ( #894620=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -wE'{ my $s=1; sub f {          eval q{$s} } } say f || 0;'
    Variable "$s" is not available at (eval 1) line 2.
    ...
    
    $ perl -wE'{ my $s=1; sub f { $s if 0; eval q{$s} } } say f || 0;'
    1
    
  2. or download this
    $ perl -wE'{ my  $s=1; sub f { eval q{$s} } } say f || 0;'
    Variable "$s" is not available at (eval 1) line 2.
    ...
    
    $ perl -wE'{ our $s=1; sub f { eval q{$s} } } say f || 0;'
    1
    
  3. or download this
    perl -c Foo.pm
    
  4. or download this
    perl -e'use Foo;'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://894620]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2020-07-02 09:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?