Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Tied Hashes vs. Objects

by Anonymous Monk
on Oct 22, 2012 at 17:13 UTC ( [id://1000387]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub process {
      my $node = shift;
    ...
    }
    
    process({ 'a' => '1', 'b' => [ '2' ],  'c' => { 'd' => '3' } });
    
  2. or download this
    package Local::MyComp::Map;
    
    ...
    sub keys { ... }
    
    etc. etc.
    
  3. or download this
      if (my $reftype = ref($node)) {
        if (blessed($node) && $node->isa(Local::MyComp::Map) {
          process_map($node);
        } 
      ...
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-23 06:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found