Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

IO::All bug on XP -- Do you need to predeclare spiffy_constructor?

by hackdaddy (Hermit)
on Jan 17, 2006 at 23:27 UTC ( [id://523859]=perlquestion: print w/replies, xml ) Need Help??

hackdaddy has asked for the wisdom of the Perl Monks concerning the following question:

What causes this bug on XP? Thanks. Module looks useful, but never works.

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
  • Comment on IO::All bug on XP -- Do you need to predeclare spiffy_constructor?
  • Download Code

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
    What causes this bug on XP? Thanks.
    Probably outdated versions of the module and/or its dependencies.

    Please read A Guide to Installing Modules and run the test suite before installing a module.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: IO::All bug on XP -- Do you need to predeclare spiffy_constructor?
by jdporter (Paladin) on Aug 01, 2008 at 18:38 UTC

    As of ActiveState build 822, the AS repo only has version 0.17 of IO-All, not the current 0.38. This causes exactly the problem reported by the OP.

    I hacked around this by installing 0.17 via ppm, then downloading 0.38 from CPAN and copying the files on top of the 0.17 files in my perl installation. Cursory testing (running the "Tiny Web Server" example) indicates that it Just Works. I also copied the three .pm files from the IO-All-LWP distribution into my site\lib\IO\All, and that too Just Works. Pure Perl++. :-)

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://523859]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found