Hi everyone, I'm a hopeless hacker of Perl, and I tend to think in AWK-ish ways, simply because I know awk loads better than Perl. Awk has unfortunately taught me to think purely in terms of fields...
If I have a text file where the field separator is a new line and the record separator is a blank line, like this: blah blah blah yeah yeah yeah blah blah blah yeah yeah yeah etc... is there a simple way to slurp all the first fields into one array and all the second fields into another array. I know how to do this with a simple text file with just one array, i.e. open FILE1, $ARGV[0] or die "Can't open $ARGV[0]: $!\n"; chomp(@input = <FILE1>); but can I simply change the second line in such a way as to split the input into two separate arrays? would I use split to do this? Any hints or help would be greatly appreciated, Dennis Warren -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]