Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: eval not behaving like I expected... why?

by jdporter (Paladin)
on Mar 14, 2006 at 12:28 UTC ( [id://536549]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $config::fee="FEE"
    $config::fi="FI"
    $config::fo="FO"
    @config::fum=qw / fee fi fo fum /
    
  2. or download this
    my $namespace = "here";
    while (<DAT>) {
        s/([\$\@\%])/$1$namespace\::/;
        eval $_;
    }
    
  3. or download this
    # config:
    {
    ...
      fo=>"FO",
      fum=>[qw/ fee fi fo fum /],
    }
    
  4. or download this
    my $config_hr = do 'datafile.txt';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-25 06:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found