473,699 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with Config::Propert ies

1 New Member
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 ??
Oct 24 '07 #1
9 2457
numberwhun
3,509 Recognized Expert Moderator Specialist
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 New Member
/^(?:\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?
Oct 27 '07 #3
salva
7 New Member
BTW, to get help about anything related to Perl, use PerlMonks!!!
Oct 27 '07 #4
numberwhun
3,509 Recognized Expert Moderator Specialist
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 New Member
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.
Oct 27 '07 #6
numberwhun
3,509 Recognized Expert Moderator Specialist
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
Oct 27 '07 #7
KevinADC
4,059 Recognized Expert Specialist
Hopefully baluundertaker comes back to read the replies.
Oct 28 '07 #8
salva
7 New Member
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
Oct 28 '07 #9
numberwhun
3,509 Recognized Expert Moderator Specialist
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.
Oct 28 '07 #10

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

Similar topics

0
990
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 web.config stoped working I do not know how to configure or correct way to write it in web.config my old code loooked like this system.web>
3
5264
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 config file is set up for Forms Authentication. I know certain system.web settings get mapped to various properties/methods during runtime (e.g. <sessionState>'s timeout attribute maps to the Session.Timeout property at runtime). You can easily...
3
1456
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 .message property of the return object is null, and not the string in the envelope.
1
1844
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" encoding="utf-8" ?> <configuration> <configSections>
5
5731
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" and value is "monkey". I've tried the following ways to retrieve the value and only one works: //Returns null Configuration config = ConfigurationManager.OpenExeConfiguration(Assembly.GetEntryAssembly().Location); string monkey =...
1
1952
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 accessing the webservice each min. It was working 100% fine. Problem: But now in actual deployment, we have deployed webservice in Win Server 2003 and we have used all the default configurations. Now the clients are accessing that service the same way...
13
7136
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 noticed that the designer creates and app.config that gets copied to the output directory as a .exe.config or .dll.config. In this setup any Application Scope property that is in the .exe.config file can be read in from the file and used. My...
1
22003
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 PROPS, "< input.properties" or die "unable to open configuration file"; my $properties = new Config::Properties();
26
2843
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
9181
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9040
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8924
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3060
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2353
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2012
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.