I was looking through the source code of Find.pm of File::Find. The comments mention why local()-izing is needed, which I kinda-sorta understand since the the callback functions passed in may call find or finddepth again, so local essentially makes a copy of the global variables (am I right or wrong here?). However, I don't understand why local *_ isn't sufficient. Why is set to \my $a? Why \my $a in particular and not some other variable--I mean, could any variable substitute \my $a? Thanks.
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |