in reply to silly question about shift

Because it's looking for a hash element named 'shift'. Try the following:

sub a { my %conf = ( blah => 1200 ); $conf{ +shift }; } print a('blah');

Cheers,
Ovid

Vote for paco!

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.