in reply to Re: Re: Re: Behavior of compile-time constants?
in thread Behavior of compile-time constants?
That prints shift and not bar.#!/usr/bin/perl use strict; use warnings 'all'; sub foo { my %hash = (shift => 1); print keys %hash, "\n"; } foo "bar"; __END__
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Behavior of compile-time constants?
by perrin (Chancellor) on Jun 14, 2002 at 18:24 UTC | |
by Abigail-II (Bishop) on Jun 14, 2002 at 18:29 UTC |