Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Autovivification trick

by blazar (Canon)
on Aug 12, 2006 at 10:56 UTC ( [id://567024]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /file.txt
    /a/file.txt
    /a/b/c
    /a/b/c/file.txt
    /z/m/w/file.txt
    
  2. or download this
    %dir_hash(
        'file.txt' => '',
    ...
            'b' => {
                'c' => {
                    'file.txt'
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    /a/b/c
    /a/b/c/file.txt
    /z/m/w/file.txt
    
  4. or download this
    my $last=\\%dirhash;
    $last=\$$last->{$_} for split qr|/|;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-03-19 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found