Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Pushing hashes onto arrays

by jptxs (Curate)
on Nov 15, 2000 at 07:11 UTC ( [id://41715]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;    # or DIE : )
    use warnings;  # or SUFFER : )
    ...
    # then you can use the reference like you would the hash by DEreferenc
    +ing it
    
    print "$ref->{one}"; # prints 'this'
    
  2. or download this
    #!/usr/bin/perl -w # -w does same as use warnings above, but for older
    + perls
    use strict;
    ...
    
    print "Kungfoo is ->", $kung[0]{foo}, "<-\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-09-17 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (22 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.