in reply to Re^2: hash references
in thread hash references

If $site{$_} contains an array reference, you can simply get the first item with $site{$_}[0] - no need for all those curlies.

Replies are listed 'Best First'.
Re^4: hash references
by Anonymous Monk on Aug 01, 2011 at 11:57 UTC

    in that case,i have this error.i really confused!!

    cant use string

    <"[1,0]"> as an array ref while "strict ref" use at mainproject.pl line 245