Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 lurking in the Monastery: (3)
As of 2021-04-13 03:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?