- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: perl DateCalc & Calc issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 12:04 AM
тАО06-10-2009 12:04 AM
perl DateCalc & Calc issue
I have some issue with perl modules,i have perl 5.8.3 & installed DateCalc 3.2 & Calc 5.4 module, but when i execute my primary package on apache server ,log shows some message as follows
Subroutine Date::Calc::Language redefined at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/Date/Calc.pm line 103.
Subroutine Date::Calc::Languages redefined at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/Date/Calc.pm line 103.
Subroutine Date::Calc::ISO_LC redefined at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/Date/Calc.pm line 103.
Subroutine Date::Calc::ISO_UC redefined at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/Date/Calc.pm line 103.
Subroutine Date::Calc::Version redefined at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/Date/Calc.pm line 103.
Use of uninitialized value in concatenation (.) or string at Pace.pm line 98.
Undefined subroutine &Date::DateCalc::check_date called at Pace.pm line 543.
no element found at line 1, column 0, byte 0 at /opt/perl/lib/site_perl/5.8.3/IA64.ARCHREV_0-thread-multi/XML/Parser.pm line 187
Details
HPUX 11iv2,rx4640,2CPU,8GB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 04:23 AM
тАО06-10-2009 04:23 AM
Re: perl DateCalc & Calc issue
The 'Date::Calc' module documentation notes that:
/* begin quote */
"In the current implementation of this package, the selected language is stored in a global variable.
Therefore, when you are using a threaded Perl, this may cause undesired side effects (of one thread always selecting the language for ALL OTHER threads as well).
/* end quote */
Hence, I believe that that describes the first set of messages you report.
For the remainder, you need to examine things further.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2009 08:51 PM
тАО06-10-2009 08:51 PM
Re: perl DateCalc & Calc issue
Actually i am new to perl,what u brought to my attention is acceptable but what shud i do to resolve the issue..??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-14-2009 11:00 PM
тАО06-14-2009 11:00 PM
Re: perl DateCalc & Calc issue
Eagerly waiting for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 04:05 AM
тАО06-15-2009 04:05 AM
Re: perl DateCalc & Calc issue
You need to look (at least) at your 'Pace.pm' module around line 98 and also lie 543. The "uninitialized value" is a warning, but the undefined subroutine constitutes an error.
&Date::DateCalc::check_date
...should be:
&Date::Calc::check_date( ...
...or:
Date::DateCalc::check_date( ...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-18-2009 09:13 PM
тАО06-18-2009 09:13 PM
Re: perl DateCalc & Calc issue
Sorry for the delay, I tried the things as u suggested but still its showing the same error...
I still couldnt figure it out what is the error..also i think check_date function is of Calc.pm package,then why its showing error with DateCal.pm package..
waiting for ur reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-19-2009 04:02 AM
тАО06-19-2009 04:02 AM
Re: perl DateCalc & Calc issue
> i think check_date function is of Calc.pm package,then why its showing error with DateCal.pm package..
I don't know what module 'Calc.pm' is. In your initial post you mentioned "DateCalc 3.2 & Calc 5.4" which is interesting since the 'Date::Calc' module's current version is in fact 5.4. I can only presume that 'Calc.pm' is something indigenous to your local installation.
My previous post may have confused things. I _should have_ written the following:
You need to look (at least) at your 'Pace.pm' module around line 98 and also lie 543. The "uninitialized value" is a warning, but the undefined subroutine constitutes an error.
&Date::DateCalc::check_date
...should be:
&Date::Calc::check_date( ...
...or:
Date::Calc::check_date( ...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 11:21 PM
тАО06-23-2009 11:21 PM
Re: perl DateCalc & Calc issue
i tried to look into Pace.pm package i didnt got any clue.As i said before i am new to perl , so your help is very much expected
i still cudnt figure it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2009 09:41 PM
тАО07-01-2009 09:41 PM
Re: perl DateCalc & Calc issue
Can u please tell me what are the valid versions of DateCalc & Calc modules for perl 5.8.3
waiting for ur reply.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-07-2009 03:34 AM
тАО07-07-2009 03:34 AM
Re: perl DateCalc & Calc issue
I tried to debug my perl file, i found the following errors
may be some problem with DateCalc module's month_name_tab function.
Please help me out.
DB<13>
Pace::getDateLabel(Pace.pm:338): my $startMon=substr(month_name_tab(substr($_[0],4,2)),0,3);
DB<13>
Undefined subroutine &Pace::month_name_tab called at Pace.pm line 338.
Pace::getDateLabel(20090706,20090706) called at /utilities/intranet/apache/cgi-bin/pace/plotfsusage.pl line 148
main::initialise() called at /utilities/intranet/apache/cgi-bin/pace/plotfsusage.pl line 120
main::main() called at /utilities/intranet/apache/cgi-bin/pace/plotfsusage.pl line 257
Debugged program terminated. Use q to quit or R to restart,
use O inhibit_exit to avoid stopping after program termination,
h q, h R or h O to get additional info.