Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: splitting files into multiple sections to be processed as a fileby CountZero (Bishop) |
on Nov 29, 2011 at 23:08 UTC ( [id://940723]=note: print w/replies, xml ) | Need Help?? |
You can save the subcontents in an array, that is easy. But what file-specific operations do you want to perform on the subcontents? Update: You can use a scalar reference as a "virtual" (or in-memory) file (since Perl v5.8.0.)
CountZero A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In Section
Seekers of Perl Wisdom
|
|