Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Closures clarification

by props (Hermit)
on Dec 04, 2007 at 12:39 UTC ( #654763=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $total_size =0;
    find{ sub $total_size += -s if -f}, '.');
    print $total_size, "\n";
    
  2. or download this
    use warnings;
    use strict;
    ...
    }
    $a=1
    print $a;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://654763]
Approved by andreas1234567
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2021-03-05 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (109 votes). Check out past polls.

    Notices?