Problem with Config::Properties

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • baluundertaker
    New Member
    • Oct 2007
    • 1

    Problem with Config::Properties

    I am using a Aix 5.3 system and have written a perl script which uses Config::Propert ies to read/write into configuration files . The perl version is 5.6.0.

    When i run : perl filename.pl i get the following error :

    /^(?:\x{FEFF}|{F FFE})/: Can't use \x{} without 'use utf8' declaration at Config/Properties.pm line 215.
    Compilation failed in require at trytest.pl line 3.
    BEGIN failed--compilation aborted at trytest.pl line 3.

    line 3 basically has : use Config::Propert ies

    The same script works in windows ..

    Anyone has any idea how to solve this problem ??
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    Could you please post your code so that we can see what you have written thus far?

    Thanks!

    Regards,

    Jeff

    Comment

    • salva
      New Member
      • Oct 2007
      • 7

      #3
      Originally posted by baluundertaker
      /^(?:\x{FEFF}|{F FFE})/: Can't use \x{} without 'use utf8' declaration at Config/Properties.pm line 215.
      Compilation failed in require at trytest.pl line 3.
      BEGIN failed--compilation aborted at trytest.pl line 3.
      That's probably a bug in Perl 5.6.0 related to Unicode support. Send the author (me!) a mail with your test script, the error, and the output for perl -V so I can reproduce it myself.

      Anyway, I would recomend you to upgrade your perl to at least 5.6.1 or 5.6.2 if you can

      The same script works in windows ..
      but you have installed a different perl version there, right?

      Comment

      • salva
        New Member
        • Oct 2007
        • 7

        #4
        BTW, to get help about anything related to Perl, use PerlMonks!!!

        Comment

        • numberwhun
          Recognized Expert Moderator Specialist
          • May 2007
          • 3467

          #5
          Originally posted by salva
          BTW, to get help about anything related to Perl, use PerlMonks!!!
          First, this is a Perl forum. Like Perlmonks, we answer questions related to Perl. I am not saying we are as good as Perlmonks as there are some wicked good guru's over there that really know what they are doing. Heck, I have referred people over there with their questions.

          Second, the user is using a module and the error is specific to the module. Since the user did not post their code, we are unable to see what they are doing, thus, the reason that I requested that they post their code.

          So, how about we wait and see their code before shoving them off to another forum?

          Regards,

          Jeff

          Comment

          • salva
            New Member
            • Oct 2007
            • 7

            #6
            Originally posted by numberwhun
            First, this is a Perl forum. Like Perlmonks, we answer questions related to Perl. I am not saying we are as good as Perlmonks as there are some wicked good guru's over there that really know what they are doing. Heck, I have referred people over there with their questions.
            Well, maybe my post was a little unrespectful to the people maintaining this site, I can see that and I am sorry about that.

            The truth is that I always do that recommendation to people asking questions about any of my modules because in my experience, the response level you get in Perlmonks is far superior to any other forum.

            Second, the user is using a module and the error is specific to the module. Since the user did not post their code, we are unable to see what they are doing, thus, the reason that I requested that they post their code.
            Did you see my other post?

            The user has posted enough information. Just try running

            $ perl -MConfig::Proper ties -e1

            on a 5.6.0 perl an you will see the same error appear. It's related to Unicode, its support in 5.6.0 was very buggy.

            Cheers.

            Comment

            • numberwhun
              Recognized Expert Moderator Specialist
              • May 2007
              • 3467

              #7
              Originally posted by salva
              Well, maybe my post was a little unrespectful to the people maintaining this site, I can see that and I am sorry about that.

              The truth is that I always do that recommendation to people asking questions about any of my modules because in my experience, the response level you get in Perlmonks is far superior to any other forum.



              Did you see my other post?

              The user has posted enough information. Just try running

              $ perl -MConfig::Proper ties -e1

              on a 5.6.0 perl an you will see the same error appear. It's related to Unicode, its support in 5.6.0 was very buggy.

              Cheers.
              I completely agree with you that Perlmonks response rate is out of this world, but the user did choose to post here.

              I now see what you are talking about after doing some googling. I was unaware of the Unicode issue. Since you are the author, I will let you run with it.

              Please know I wasn't trying to slam you or anything with my posting, just responding in kind. :)

              Regards,

              Jeff

              Comment

              • KevinADC
                Recognized Expert Specialist
                • Jan 2007
                • 4092

                #8
                Hopefully baluundertaker comes back to read the replies.

                Comment

                • salva
                  New Member
                  • Oct 2007
                  • 7

                  #9
                  I have just uploaded Config::Propert ies 1.68 to CPAN. It has a work around for the perl bug that caused it to fail under 5.6.0

                  Comment

                  • numberwhun
                    Recognized Expert Moderator Specialist
                    • May 2007
                    • 3467

                    #10
                    Originally posted by salva
                    I have just uploaded Config::Propert ies 1.68 to CPAN. It has a work around for the perl bug that caused it to fail under 5.6.0
                    In other words, the OP should now install the newest version of the module and re-run the scrip to ensure it is fixed.

                    Comment

                    Working...