in reply to Question about text::csv_xs

Ok I am opening the file and using cvs->getline($io) to get an array ref only problem being I am new to perl and not sure how to use this array ref. Is there any tutorials about array refs? Or would someone like to give me a minor explanation of how perl handles array refs?

Replies are listed 'Best First'.
Re^2: Question about text::csv_xs
by jZed (Prior) on Apr 29, 2005 at 19:08 UTC
    See perlreftut. Here's the basics:
    my $cols_arrayref = $csv->getline($fh); # get an arrayref my @cols_array = @$cols_arrayref; # deref the entire array my $col = $cols_arrayref->[0]; # or deref an element