in reply to simple to describe I/O problem
when the whole thing can be done in just one single line of code:use IO::File; # ... my $fh=IO::File->new; if ($fh->open($file,"<")) { # ...
To me, this is just looking like pointless over-engineering. Or perhaps OO-fashion victim. Or an application of the following principle: why should we make things simple when they can be made more complicated? Just the contrary of the Perl principles stated many times by Larry Wall and others: to make easy jobs easy.open my $fh, "<", $file or die "Can't open $file $!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: simple to describe I/O problem
by Anonymous Monk on Sep 01, 2014 at 20:54 UTC | |
by Laurent_R (Canon) on Sep 01, 2014 at 21:01 UTC |