IO::All error on my PC

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MyMarlboro
    New Member
    • Mar 2008
    • 71

    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

    Code:
    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.
    Last edited by eWish; May 22 '08, 01:10 AM. Reason: Please use code tags reather than using the [B] bold[/B] tags
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    Originally posted by MyMarlboro
    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_constru ctor 'io'"
    (Do you need to predeclare spiffy_construc tor?)
    syntax error at C:/Perl/site/lib/IO/All.pm line 12, near "spiffy_constru ctor '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_construc tor 'io'" in the module anywhere.

    Comment

    • MyMarlboro
      New Member
      • Mar 2008
      • 71

      #3
      Originally posted by KevinADC
      Did you modify or edit the IO::All module? I don't even see this: "piffy_construc tor 'io'" in the module anywhere.
      Thanks for reply.
      No, i didn't modify it.

      the module as below:
      Code:
      package IO::All;
      use strict;
      use warnings;
      use 5.006_001;
      our $VERSION = '0.17';
      use Spiffy 0.16 '-base', qw(!field);
      use Fcntl qw(:DEFAULT :flock);
      use Symbol;
      use File::Spec;
      our @EXPORT = qw(io);
      
      spiffy_constructor 'io';
      
      #===============================================================================
      # Basic Setup
      #===============================================================================
      sub field;
      field autoclose => 1;
      field block_size => 1024;
      ...

      Comment

      • eWish
        Recognized Expert Contributor
        • Jul 2007
        • 973

        #4
        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

        Comment

        Working...