Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[mark4]: Do you h=know how I can get pp.exe? Is there a module I can install that includes this?
[marto]: I always found Strawberry Perl on windows to be a much better environment, made life much easier
[marto]: pp. install it like you would any other module
[marto]: it probably exists in one of the PPM repositories
[marto]: failing that see the README
[mark4]: I installed "PAR" from the ppm install window. pp.exe. did not show up.
[marto]: it should just be a script, pp, or on windows pp.bat, post install you should just be able to call pp -x packed.exe source.pl as the PPM package should put everything required into the appropriate path
[marto]: ah, some time ago pp became it's own package, try searching your repo for PAR::Packer
[marto]: again, Strawberry + cpanm for the win: cpanm pp to install

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2018-01-19 14:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (218 votes). Check out past polls.

    Notices?