Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: "eval" and "my" variable weirdness

by dave_the_m (Monsignor)
on Jun 29, 2006 at 17:00 UTC ( [id://558384]=note: print w/replies, xml ) Need Help??


in reply to "eval" and "my" variable weirdness

Note that from 5.9.0 onwards you get a run-time warning:
$ perl590 -w /tmp/p Variable "$x" is not available at (eval 1) line 1. Use of uninitialized value in concatenation (.) or string at (eval 1) +line 1. x= $ cat /tmp/p #!/usr/bin/perl { my $x = 1; sub f { eval q(print "x=$x\n") } } f;

Dave.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2024-03-28 18:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found