Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

differences between perl versions?

by hotshot (Prior)
on Jul 17, 2003 at 15:07 UTC ( [id://275239]=perlquestion: print w/replies, xml ) Need Help??

hotshot has asked for the wisdom of the Perl Monks concerning the following question:

Hi all!

I have two computers, one running Linux RH 7.1 with perl 5.6.0-12, and one with RH 9.0 with perl 5.8.0-88.
I'm running a project on the Perl 5.6.0 machine and everything is ok there. When running the same project on the perl 5.8.0 machine I get an Undifined subrutine isLocalUser in ... error, and the project crashes. Is there something that can be different in syntax between the perl versions that don't have backwards competability, coz' I can think of any other reason.
May I add that every function in the file where isLocalUser() sits is working, as if the file is not included in the project - I get the same error. Other functions in other files do work - till the crash.

Anyone?

Hotshot

Replies are listed 'Best First'.
Re: differences between perl versions?
by simonm (Vicar) on Jul 17, 2003 at 15:29 UTC
    I encountered an issue in moving from 5.005 to 5.6 in which a complex project, with lots of use and require statements, stopped working with a similar error. It may be completely unrelated to your problem, but in that case, it turned out to hinge on some subtle change in the order in which libraries were loaded. To fix it, we added a few more explicit use statements to ensure that the relevant module was loaded before anything that tried to use it.

    Along these lines, you might want to check that your library is actually being loaded when you think it is, by adding a "warn 'Declaring isLocalUser'" statement right above the "sub isLocalUser { ... }" declaration and ensuring that it shows up when your program loads.

Re: differences between perl versions?
by adrianh (Chancellor) on Jul 17, 2003 at 20:23 UTC

    The perldelta documentation contains a list of what people have deliberately changed between versions. That may give you some pointers.

    My advice would be to narrow down the failing case to a small code snippet and post it here (if the act of narrowing down the bugs location doesn't show you what the problem is.)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://275239]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-26 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found