467,179 Members | 1,271 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

IO::All error on my PC

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
  • viewed: 1376
Share:
3 Replies
KevinADC
Expert 2GB
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
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 512MB
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.

Similar topics

3 posts views Thread by IMS.Rushikesh@gmail.com | last post: by
6 posts views Thread by kennethlou@yahoo.com.hk | last post: by
7 posts views Thread by Tina I | last post: by
9 posts views Thread by Keith G Hicks | last post: by
3 posts views Thread by Rajan Arora | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.