Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^4: I can crash perl

by Anonymous Monk
on Apr 07, 2015 at 10:13 UTC ( [id://1122685]=note: print w/replies, xml ) Need Help??


in reply to Re^3: I can crash perl
in thread I can crash perl

sure, see Understanding the Schwartzian transform. / Re: Understanding the Schwartzian transform. then write
my @sorted = map { $_->[0] } sort { $a->[1] cmp $b->[1]; } ## magicpipe map { [ $_, expensive($_) } @unsorted; sub expensive { ... my $magicpipe = join '|', $dir_and_file_name, $date_time_mod, $file_size, $encpd, $deleted_file, $has_iden ; return [ $original, lc($magicpipe) ]; }

Also see File::Find::Rule/find rule , Path::Tiny/path tiny, Win32::Unicode

Replies are listed 'Best First'.
Re^5: I can crash perl
by AnomalousMonk (Archbishop) on Apr 07, 2015 at 12:10 UTC
    map  { [ $_, expensive($_) } @unsorted

    Note that this expression should be
        map { [ $_, expensive($_) ] } @unsorted
    (missing right-square-bracket) or even
        map [ $_, expensive($_) ], @unsorted
    (needs extra comma).


    Give a man a fish:  <%-(-(-(-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2024-04-25 12:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found