in reply to reading from a text file
#!/usr/bin/perl -w use strict; open(F,"test.txt"); foreach(<F>){ if ($_ =~ /.*(\d\d).*(\d\w+)/){ print "$1 : $2 \n"; } } close F;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading from a text file
by samy_kumar (Scribe) on Jun 07, 2005 at 12:13 UTC | |
by tchatzi (Acolyte) on Jun 07, 2005 at 14:05 UTC | |
by tchatzi (Acolyte) on Jun 07, 2005 at 14:18 UTC |