skip to main | skip to sidebar

ЛiНУКСЪ

Emacs-do and Linux-jitsu

19 February, 2006

PERL: Read To Colums

$file = 'input.csv';

open (F, $file) || die ("Could not open $file!");

while ($line = )
{
($field1,$field2,$field3,$field4) = split ',', $line;
print "$field1 : $field2 : $field3 : $field4";

}

close (F);
Posted by Unknown at 3:06 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2010 (3)
    • ►  March (3)
  • ►  2009 (4)
    • ►  July (4)
  • ►  2008 (16)
    • ►  September (2)
    • ►  August (3)
    • ►  July (1)
    • ►  May (3)
    • ►  April (5)
    • ►  February (2)
  • ►  2007 (1)
    • ►  February (1)
  • ▼  2006 (48)
    • ►  December (4)
    • ►  October (5)
    • ►  September (1)
    • ►  August (1)
    • ►  July (1)
    • ►  May (4)
    • ►  April (4)
    • ►  March (11)
    • ▼  February (17)
      • .initrc, bash_complete and other intersting tidbits
      • function fig2ps{ fig2dev -L ps "$1" "${1%.fig}.ps...
      • Mouse Pad SpeedSimple:/etc/X11/xorg.confunder Syna...
      • Check this out
      • ls color
      • m4a to mp3
      • Animated gif
      • MIME Types (Mplayer)
      • Zip Pipe
      • PERL: Read To Colums
      • Setting and unsetting desktop image
      • SSH cygwin
      • say "yes" to Xforwarding
      • customized shortcuts
      • Remove Icons from Desktop (GNOME)
      • Sudo is great
      • Opening Ports Linux

Links

  • Google News
  • Edit-Me
  • Edit-Me

About Me

Unknown
View my complete profile