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
In reply to Re: Behavior of compile-time constants?
by Abigail-II
in thread Behavior of compile-time constants?
by laughingboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |