in reply to Re: What is the scope of $_?
in thread What is the scope of $_?
</tangent>use strict; use warnings; @_ = @ARGV; package Foo; print for @_; @_ = qw(1 2 3 4 5); { local @_ = reverse @_; print for @_; } package main; print for @_;
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is the scope of $_?
by tobyink (Canon) on Nov 26, 2012 at 19:35 UTC |