chinamox has asked for the wisdom of the Perl Monks concerning the following question:
Hello all,
I am looking for a way of parsing a very large list of words that currently passes into @ARGV. I would like to split a file into x number of new files, which are then placed into the current directory so that the main program can work on each of the new files in turn. x should be a number that is given in the command line.
some sample data: __DATA__ apple apex beat carrot date endzone flyer grandslam hoplite indigo __END__
I am trying to parse up data for an online assignment. IF you could point me towards some useful documentation or examples, I would be most thankful.
Danke,
mox
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting up data...
by kwaping (Priest) on Oct 20, 2006 at 15:01 UTC | |
|
Re: splitting up data...
by Melly (Chaplain) on Oct 20, 2006 at 15:19 UTC | |
by chinamox (Scribe) on Oct 22, 2006 at 01:56 UTC | |
|
Re: splitting up data...
by Fletch (Bishop) on Oct 20, 2006 at 15:11 UTC | |
|
Re: splitting up data...
by Fendaria (Beadle) on Oct 20, 2006 at 17:03 UTC | |
by chinamox (Scribe) on Oct 22, 2006 at 06:07 UTC |