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

Re: Autovivification trick

by blazar (Canon)
on Aug 12, 2006 at 10:56 UTC ( #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
Node Status?
node history
Node Type: note [id://567024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-12-22 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls