Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

DEFINING my

Quote Reply
DEFINING my
would anyone know how to use my for
(@{$ratesort{$k}}) = sort{ $a <=> $b; } (@{$ratesort{$k}});

Using strict, it says I must define this array but whatever I try, my @{$ratesort{$k}}; etc does not work. I've finally given up and just used no strict for just this array and turned strict back on.

Thanks,
Kevin
Quote Reply
Re: DEFINING my In reply to
Code:
@{$ratesort{$k}} = sort{ $a <=> $b } @{$ratesort{$k}};

will work if %ratesort is "MYed" and $k is "MYed" the contents must be an array ref though.

jerry