Roiy Zysman wrote: > > Hi all, Hello,
> What is the meaning of the '+' sign before the shift command in my test sub. > Why doesn't it works without the '+' sign ? perl looks at %{shift} and sees the variable %shift. You have to tell it that shift is not a variable name using either %{shift()} or %{+shift} or %{shift @_} or %{shift;} or %{;shift} or you could use %{$_[0]} > test_sub({'key1'=>'value1','key2'=>'value2'}); > > > sub test_sub{ > my %htest = %{+shift}; #why doesn't it works without the + sign > print keys(%htest); > print "end\n"; > } John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]