| akim <[EMAIL PROTECTED]> writes:
| >  sub scan_autoconf_config_files
| >  {
| > +    print STDERR "=>> @_\n";
| > +    print STDERR "==>> $_\n";
| 
| Why do you expect $_ to contain anything in particular at this point?
| You've not assigned anything to it in this sub.  $_ is a completely
| separate variable from @_; they're utterly unrelated.
| 
| The arguments to a sub appear in @_.

Aaaarg!  Thanks!  In fact much of my learning Perl comes from reading
Automake, and scan_autoconf_config_files was precisely using $_ as if
it were the argument.  So I really believed $_ was $_[0].  As
explained by Derek it worked precisely because
scan_autoconf_config_files was called with $_ as argument...

Thanks a lot for the clarification.  I think I'll buy some Perl book :)

Reply via email to