Please paste the command you're trying. Hash subscript works for me.

  $ perl -le '%t = (a => "b", c => "d"); print $t{a}'
  b

On Wed, Jul 27, 2011 at 2:05 PM, Avishalom Shalit <[email protected]>wrote:

> to reiterate the problem
>
> $t{something}
> is interpreted as ($t) ({something})
>
> in a one liner
>
> (not in a script)
> -- vish
>
>
-- 
Gaal Yahas <[email protected]>
http://gaal.livejournal.com/
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to