473,748 Members | 2,225 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 2460
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
994
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
5266
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
1460
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
5735
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
1954
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
7143
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
22007
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
2852
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
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9548
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...
1
9325
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
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.