473,385 Members | 1,736 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,385 software developers and data experts.

Problem with Config::Properties

I am using a Aix 5.3 system and have written a perl script which uses Config::Properties 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}|{FFFE})/: 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::Properties

The same script works in windows ..

Anyone has any idea how to solve this problem ??
Oct 24 '07 #1
9 2438
numberwhun
3,509 Expert Mod 2GB
Could you please post your code so that we can see what you have written thus far?

Thanks!

Regards,

Jeff
Oct 24 '07 #2
salva
7
/^(?:\x{FEFF}|{FFFE})/: 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?
Oct 27 '07 #3
salva
7
BTW, to get help about anything related to Perl, use PerlMonks!!!
Oct 27 '07 #4
numberwhun
3,509 Expert Mod 2GB
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
Oct 27 '07 #5
salva
7
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::Properties -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.
Oct 27 '07 #6
numberwhun
3,509 Expert Mod 2GB
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::Properties -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
Oct 27 '07 #7
KevinADC
4,059 Expert 2GB
Hopefully baluundertaker comes back to read the replies.
Oct 28 '07 #8
salva
7
I have just uploaded Config::Properties 1.68 to CPAN. It has a work around for the perl bug that caused it to fail under 5.6.0
Oct 28 '07 #9
numberwhun
3,509 Expert Mod 2GB
I have just uploaded Config::Properties 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.
Oct 28 '07 #10

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

Similar topics

0
by: AT | last post by:
Thanks in advance if you respond I have very bad problem with profiles. I know they changed a lot but .... It all worked in configuration file fine in beta 1 Since I changed to beta 2...
3
by: MikeM | last post by:
I've been trying to locate some property or method that will allow programmatic access to the "loginUrl" attribute in the web.config file in the <system.web> -> <authentication> element when the...
3
by: Danny Tuppeny | last post by:
Hi all, This is quite urgent - I'll keep it brief... I've posted the WSDL, Proxy class etc. here: http://dantup.me.uk/SoapProb/ My problem is that the Soap Envelope looks fine, yet the...
1
by: Ian | last post by:
Hi, Am having trouble retrieving a value from a config file using VC# 2005. app.config file (as created using 'Settings' tab on Project properties page) is as follows: <?xml version="1.0"...
5
by: Keith | last post by:
Hello all, I have a C# Windows Forms app. It is in namespace App.GUI. It builds to Nav.exe. I have entered an application level setting using the designer. Its type is string, name is "FOO"...
1
by: Mahesh Devjibhai Dhola | last post by:
Hi, Scenario: The webservice was developed on windows 2000 Pro and deployed previously on windows XP pro for testing. We have tested for many days. The client for that service was 30+ and...
13
by: Dave | last post by:
When using the properties designer to store application wide properties how do you get this to work across a project group containing an EXE and a collection of DLLs. I'm using C#.Net 2005. I...
1
by: bhavanirayala | last post by:
Hi, I am new to perl.Basically I am from java.Now I am getting error while i reading the configuration parameters in perl. #!/usr/bin/perl use Config::Properties; # reading... open...
26
by: Max2006 | last post by:
Hi, C# 3.0 extension methods become useful for us. Do we have the similar concept for extension properties? Thank you, Max
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.