Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: Closures clarification

by fenLisesi (Priest)
on Dec 04, 2007 at 14:11 UTC ( #654796=note: print w/replies, xml ) Need Help??

in reply to Re: Closures clarification
in thread Closures clarification

And what else is he missing?
use File::Find; my $total_size = 0; find({sub $total_size += -s if -f}, '.'); print $total_size, "\n";
You were missing the "use" statement and a "(" in the find function.

Replies are listed 'Best First'.
Re^3: Closures clarification
by memnoch (Scribe) on Dec 04, 2007 at 16:35 UTC
    Thanks fenLisesi....I missed that other typo...I have fixed it in my original posting as well.


    Gloria in Excelsis Deo!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://654796]
talexb admires the shimmering pool after an enjoyable hour-long All Hands meeting spent listening with one ear and reading Perlmonks with the other .. ear.
[talexb]: Used all my votes during that meeting .. been a while since I've done that. Now, back to work. Good localtime, monks!
[Corion]: talexb: You enjoyed the All Hands meeting in the pool?!
[Corion]: I understand "surfing" in the pool ;)
[talexb]: Corion I admired the pool .. I wasn't .. soaking in it. ;)
[talexb]: Plus, I've been awy from PM for about three weeks .. needed a bit of catch-up time.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2017-07-20 15:14 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (304 votes). Check out past polls.