Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Re: Assining data to an array is slow..

by chromatic (Archbishop)
on Mar 01, 2001 at 05:18 UTC ( [id://61486] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list = (1, 2, 3);    # list context, @list -> (1, 2, 3)
    my $num = @list;        # scalar context, $num -> 3
    my @second_list = @list;    # list context, @second_list -> (1, 2, 3)
    
  2. or download this
    while ($row = <FH>) {
        () = unpack("a9 a40 a15 a15 a15 a2 a9 a9 a9",$row);
    }