hackdaddy has asked for the wisdom of the Perl Monks concerning the following question:
use IO::All; # Some of the many ways to read a whole file into a scalar io('file.txt') > $contents; # Overloaded "arrow" $contents < io 'file.txt'; # Flipped but same ope +ration $io = io 'file.txt'; # Create a new IO::All + object String found where operator expected at C:/Perl/site/lib/IO/All.pm lin +e 12, near "spiffy_constructor 'io'" (Do you need to predeclare spiffy_constructor?) syntax error at C:/Perl/site/lib/IO/All.pm line 12, near "spiffy_const +ructor 'io'" BEGIN not safe after errors--compilation aborted at C:/Perl/site/lib/I +O/All.pm line 142. Compilation failed in require at parse_dir_output_02.pl line 5. BEGIN failed--compilation aborted at parse_dir_output_02.pl line 5. >Exit code: 255
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::All bug on XP -- Do you need to predeclare spiffy_constructor?
by PodMaster (Abbot) on Jan 18, 2006 at 04:42 UTC | |
|
Re: IO::All bug on XP -- Do you need to predeclare spiffy_constructor?
by jdporter (Paladin) on Aug 01, 2008 at 18:38 UTC |