There are enough examples of using 'my $var = ...' definitions, so remove
one.
This commit is contained in:
parent
a4d70fdb47
commit
a669270dee
@ -104,13 +104,6 @@ default. Lots of perl4 scripts use
|
||||
because the
|
||||
.Fa my
|
||||
definition didn't exist prior to perl5.
|
||||
.Bd -literal -offset 0i
|
||||
sub foo {
|
||||
my $var = shift;
|
||||
my @list = ();
|
||||
...
|
||||
}
|
||||
.Ed
|
||||
.Pp
|
||||
In most cases globals should be defined at the top of the code
|
||||
using a
|
||||
|
Loading…
x
Reference in New Issue
Block a user