azool has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl while ($line = <>){ @record = split(/\|/, $line); $fields = @record - 1; if ( open(OUTFILE, ">>$record[0]") ) { $" = "\|"; print @record[1..$fields]; } else { die("cannot open $record[0]"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $" seems not to be working
by jdporter (Paladin) on Mar 26, 2003 at 02:36 UTC | |
|
Re: $" seems not to be working
by Paladin (Vicar) on Mar 26, 2003 at 01:48 UTC | |
by bart (Canon) on Mar 26, 2003 at 11:05 UTC | |
|
Re: $" seems not to be working
by BrowserUk (Patriarch) on Mar 26, 2003 at 03:21 UTC | |
by dragonchild (Archbishop) on Mar 26, 2003 at 15:19 UTC | |
|
Re: $" seems not to be working
by bbfu (Curate) on Mar 26, 2003 at 03:25 UTC |