-----Original Message-----
>From: Andrew Curry <[EMAIL PROTECTED]>
>Sent: Aug 15, 2007 4:59 AM
>To: DJ Gruby <[EMAIL PROTECTED]>, Perl Beginners Mailing List 
><beginners@perl.org>
>Subject: RE: Emptying several arrays at once
>
>Whilst you can do by turning off strict and using an array of arraynames and
>looping over them, its clear concise the way you are doing it.
>
>I think you could do something like 
>
>@arrays=('test1','test2','test3');
>
>foreach my $array(@arrays) {
>@{$array}=();
>}
>

This wouldn't work.
test1,test2,test3 are not array reference,saying @{$array} would get wrong.

--
Jeff Pang <[EMAIL PROTECTED]>
http://home.arcor.de/jeffpang/

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to