in reply to Perl starter with big problem.
#!/usr/bin/perl open(FILE,"txt1.txt"); while(<FILE>){ ($val1,$val2,$val3)=split(/\s+/,$_); ($val3)=split(/-/,$val3); $vv=sprintf "$val1".'/'."$val2".'/'."$val3"."%3s".'/'; chop($vv); print $vv; } close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl starter with big problem.
by toolic (Bishop) on Nov 04, 2008 at 14:47 UTC |