Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Eval/package question

by Ratazong (Monsignor)
on Jan 21, 2020 at 10:13 UTC ( [id://11111668]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package items;
    use strict;
    ...
        eval ("$items{3}{Value} = 2;");            # ERROR: Use of uniniti
    +alized value in concatenation (.) or string at items.pm line 16.  (th
    +is line)
        print( Data::Dumper->Dumpxs( [ \ %items ], [ qw{ *items } ] ));
    }
    
  2. or download this
    %items = (
               '1' => {
    ...
                        'Value' => 2
                      }
             );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11111668]
Approved by GrandFather
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-03-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found