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 @_.

Perhaps the point of confusion is that accessing a particular argument in
@_ uses the syntax $_[0]?  But $_[0] is completely separate from $_.
Scalar variables and array variables are in separate namespaces in Perl,
just like struct tags and variable names are in separate namespaces in C.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>

Reply via email to