<html><div style='background-color:'><P>Guy's,</P>
<P>Can someone help me understand what the following Basic CSV example does?</P>
<P> </P>
<P>Code:</P><PRE> #!/usr/bin/perl -w
use strict;
use Snail::CSV;
use Data::Dumper;
my $csv = Snail::CSV->new();
$csv->setFile("lamps.csv", [ "id", "name", "pq" ]);
# or
$csv->setFile("lamps.csv", [ "id", "", "pq" ], { 'pq' => sub { my $pq = shift; $pq > 2 ? 1 : 0; } });
my $lamps = $csv->parse;
print Dumper($lamps);</PRE>
<P> </P>
<P>lamps.csv</P><PRE> 1;"Tikka Plus";3
2;"Myo XP";1
3;"Duobelt Led 8";5</PRE><PRE> </PRE><PRE>Many Thanks in advance.</PRE><PRE>Regards</PRE><PRE>Ravi <BR><BR></PRE>
<DIV></DIV><FONT color=#000000>
<DIV></DIV></FONT></div><br clear=all><hr>The next generation of Hotmail is here - <a href="http://g.msn.com/8HMAENUK/2749??PS=47575" target="_top">Windows Live Hotmail</a> </html>