Mombu the Programming Forum sponsored links

Go Back   Mombu the Programming Forum > Programming > explain code section please...
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 12th April 19:17
john w. krahn
External User
 
Posts: 1
Default explain code section please...



Wrong. $callback is a reference to an anonymous sub that is CREATED by
'create_find_callback_that_sums_the_size'.

perldoc -q closure


File::Find::find traverses the directory tree starting at 'bin' and for each
entry it calls the subroutine supplied by you and puts the name of that entry
in the $_ variable.

John
--
use Perl;
program
fulfillment
  Reply With Quote


  sponsored links


2 13th April 00:00
onlineviewer
External User
 
Posts: 1
Default explain code section please...



Thanks for the replies, it is very helpful. One more question, is the
subroutine called for as many elements that there are in the bin
directory, or is the subroutine being invoked only once and the
contents of bin are being copied into the subroutine to be worked on

Thanks
  Reply With Quote
3 13th April 00:00
john w. krahn
External User
 
Posts: 1
Default explain code section please...


No.


John
--
use Perl;
program
fulfillment
  Reply With Quote
4 13th April 00:00
onlineviewer
External User
 
Posts: 1
Default explain code section please...


thx,
  Reply With Quote
5 13th April 00:00
onlineviewer
External User
 
Posts: 1
Default explain code section please...


thx
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666