<html><div style='background-color:'><P>Guy's,</P>
<P>Can someone help me understand what the following Basic CSV example&nbsp;does?</P>
<P>&nbsp;</P>
<P>Code:</P><PRE>  #!/usr/bin/perl -w
  use strict;

  use Snail::CSV;
  use Data::Dumper;

  my $csv = Snail::CSV-&gt;new();

    $csv-&gt;setFile("lamps.csv", [ "id", "name", "pq" ]);
    # or
    $csv-&gt;setFile("lamps.csv", [ "id", "", "pq" ], { 'pq' =&gt; sub { my $pq = shift; $pq &gt; 2 ? 1 : 0; } });

  my $lamps = $csv-&gt;parse;

  print Dumper($lamps);</PRE>
<P>&nbsp;</P>
<P>lamps.csv</P><PRE>  1;"Tikka Plus";3
  2;"Myo XP";1
  3;"Duobelt Led 8";5</PRE><PRE>&nbsp;</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>