[VPM] Perl Bug?

michael at negativespace.net michael at negativespace.net
Wed Jun 16 16:48:39 CDT 2004


Indeed, and if you want to make it clear that they are starting out empty, you can do 
    my (@foo, @bar) = ();
or
    my (@foo, @bar) = (),();
which works because of list context magic and list flattening, although I'm not sure that the 
last one should work.

Michael

Peter Scott Peter at PSDT.com wrote: 
...chop...
>At 12:31 PM 6/16/2004, Darren Duncan wrote:
>Incidentally, the code Jeremy was trying is unnecessary; arrays start 
>out empty, so
>
>         my (@oidsToQuery, at indices)
>
>will do just fine.
>
>-- 
>Peter Scott
>Pacific Systems Design Technologies
>http://www.perldebugged.com/
>*** New! *** http://www.perlmedic.com/
>
>_______________________________________________
>Victoria-pm mailing list
>Victoria-pm at pm.org
>http://www.pm.org/mailman/listinfo/victoria-pm



More information about the Victoria-pm mailing list