in reply to perl parsing
Calling the system or shell for reading the file is really poor practice in Perl (except possibly for command-line one-liners). Perl offers all the tools to do that with much better control on what happens and what to do if something goes wrong.my @file = `cat text.txt`;
Look at the way poj opens and reads the file in pure Perl, that's much better.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl parsing
by AppleFritter (Vicar) on Oct 04, 2017 at 12:11 UTC | |
by choroba (Cardinal) on Oct 04, 2017 at 12:14 UTC |