By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,809 Members | 1,999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,809 IT Pros & Developers. It's quick & easy.

IO::All error on my PC

P: 72
Hi,
When I try to use the IO::All module, I get the following error.
My PC is Windows XP and Perl v 5.7.8

Expand|Select|Wrap|Line Numbers
  1. String found where operator expected at C:/Perl/site/lib/IO/All.pm line 12, near
  2.  "spiffy_constructor 'io'"
  3.         (Do you need to predeclare spiffy_constructor?)
  4. syntax error at C:/Perl/site/lib/IO/All.pm line 12, near "spiffy_constructor 'io
  5. '"
  6. BEGIN not safe after errors--compilation aborted at C:/Perl/site/lib/IO/All.pm l
  7. ine 142.
  8. Compilation failed in require at purple_code.pl line 6.
  9. BEGIN failed--compilation aborted at purple_code.pl line 6.
May 21 '08 #1
Share this Question
Share on Google+
3 Replies


KevinADC
Expert 2.5K+
P: 4,059
Hi,
When I try to use the IO::All module, I get the following error.
My PC is Windows XP and Perl v 5.7.8

String found where operator expected at C:/Perl/site/lib/IO/All.pm line 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_constructor 'io
'"
BEGIN not safe after errors--compilation aborted at C:/Perl/site/lib/IO/All.pm l
ine 142.
Compilation failed in require at purple_code.pl line 6.
BEGIN failed--compilation aborted at purple_code.pl line 6.
Did you modify or edit the IO::All module? I don't even see this: "piffy_constructor 'io'" in the module anywhere.
May 21 '08 #2

P: 72
Did you modify or edit the IO::All module? I don't even see this: "piffy_constructor 'io'" in the module anywhere.
Thanks for reply.
No, i didn't modify it.

the module as below:
Expand|Select|Wrap|Line Numbers
  1. package IO::All;
  2. use strict;
  3. use warnings;
  4. use 5.006_001;
  5. our $VERSION = '0.17';
  6. use Spiffy 0.16 '-base', qw(!field);
  7. use Fcntl qw(:DEFAULT :flock);
  8. use Symbol;
  9. use File::Spec;
  10. our @EXPORT = qw(io);
  11.  
  12. spiffy_constructor 'io';
  13.  
  14. #===============================================================================
  15. # Basic Setup
  16. #===============================================================================
  17. sub field;
  18. field autoclose => 1;
  19. field block_size => 1024;
  20. ...
  21.  
May 22 '08 #3

eWish
Expert 100+
P: 971
MyMarlboro,

Please use the code tags rather than using the [B][/B] tags. It makes it much easier to read as well as being the preferred method. I have corrected your post above.

--Kevin
May 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.