http://qs321.pair.com?node_id=1161350


in reply to Re^2: Update: problem with scalar
in thread Update: problem with scalar

You should print out your @array to make sure it contains what you think it does:
use Data::Dumper; # ... # build @array # ... print Dumper( \@array );