Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Loading package error : script works in weird way

by t-rex (Scribe)
on Jun 28, 2016 at 06:53 UTC ( [id://1166726]=note: print w/replies, xml ) Need Help??


in reply to Loading package error : script works in weird way

hey monks, i got the problem there was an exit in my Run_Lib.pm which when i commented is now giving me proper results. sorry for the inconvenience , pls don't down vote, this si a learning every time i make package we shouldn't write an exit

  • Comment on Re: Loading package error : script works in weird way

Replies are listed 'Best First'.
Re^2: Loading package error : script works in weird way
by hippo (Bishop) on Jun 28, 2016 at 08:31 UTC

    Glad to hear you have found and fixed your bug.

    For future reference it would be much kinder to everyone if you could refrain from prepending each line in your source with a number. I believe that there are user settings in PerlMonks at each user's discretion which can add these as a viewing aid for those users which prefer them but if you do it in the posted code there's no simple method to then switch them off. Much worse, anyone who tries to download your code to test it and help you debug it would first have to edit out all the line numbers. Help us to help you and just omit them next time. Thanks.

Re^2: Loading package error : script works in weird way
by Cow1337killr (Monk) on Jun 28, 2016 at 14:33 UTC

    If one inserts an exit into their program for testing purposes, one might consider placing a print statement in front of it.

    print 'Exiting the package', "\n"; exit;

    If one forgets to delete the exit, then one will see the message when one runs the program again months later.

Log In?
Username:
Password:

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

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

    No recent polls found