473,387 Members | 1,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
3 1630
KevinADC
4,059 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
971 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

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

Similar topics

3
by: IMS.Rushikesh | last post by:
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using XmlSerialization. And at below line, I m getting "error File...
1
by: Hari Sekhon | last post by:
Hi, I've written a script to run on windows to extract all zips under a given directory path to another directory path as such: python extractzips.py <fetch all zips under this dir> <put all...
6
by: kennethlou | last post by:
Hi, I am writing a program in C. The following error message appears: ************************************************************************** "XIO: fatal IO error 14 (Bad address) on X...
7
by: Tina I | last post by:
Hi group :) I have this standard line: export = open(self.exportFileName , 'w') 'exportFileName' is a full path given by the user. If the user gives an illegal path or filename the...
3
by: kollati | last post by:
#include<stdio.h> #include<math.h> main() { double input,F,t; scanf("%f\n",&input); printf("input= %f\n",input); in the output showing , ...
0
by: nik | last post by:
Hi, How can I close a thread that is waiting on a file/port down gracefully, and not have an IO error pop up? I am having trouble closing a thread that is listening to the serial port. I have a...
1
by: Boot2TheHead | last post by:
http://msdn2.microsoft.com/en-us/library/system.reflection.assembly.reflectiononlyloadfrom.aspx When I open an assembly using Assembly.ReflectionOnlyLoadFrom it loads fine, but when I try to...
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
3
by: Rajan Arora | last post by:
Hi, I am trying to get the data out of an instrument through its GPIB port and using python code. I am able to perfectly control the operation of the instrument with my code. But I have not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.