mouser13 has asked for the wisdom of the Perl Monks concerning the following question:
The code doesn't work but if I do it by hand inputing via keyboard it works? Is their sometype of formating I need to do on the tab or newlines.open(old, "| /bin/old"); foreach my $INPUT(@DATA) { my ($LAST_NAME,$FIRSTNAME,$ID_NUM,$BOOK) = split(/\s+/,$INPUT); print old "$LAST_NAME\t$FIRSTNAME\n" print old "\t$ID_NUM\t$BOOK\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: pipe perl
by VinsWorldcom (Prior) on Oct 30, 2012 at 18:58 UTC | |
by kennethk (Abbot) on Oct 30, 2012 at 20:21 UTC | |
|
Re: pipe perl
by golux (Chaplain) on Oct 30, 2012 at 20:37 UTC |