View Single Post
  #8   (View Single Post)  
Old 18th November 2008
stukov's Avatar
stukov stukov is offline
Real Name: Jean-Michel Philippon-Nadeau
Package Pilot
Join Date: May 2008
Location: Sherbrooke, Qc, Canada
Posts: 167

Originally Posted by stukov View Post
Am I expected to work with an array or an hash?
Furhter testing indicates that :
foreach my $i (@$attributes)
    print $i . ENDL;
works but
foreach my $i (%$attributes)
    print $i . ENDL;
does not.

Now, how am I expected to provide a key-value pair when I need to work with an array?
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
Reply With Quote