Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: A lil module creation advice

by greywolf (Priest)
on Apr 20, 2002 at 15:58 UTC ( #160794=note: print w/replies, xml ) Need Help??

in reply to A lil module creation advice

Is your module failing by being run or failing at compile time?

Every module that is 'used' must compile properly or the entire program will fail before it is run.

'use strict' will tell you exactly where the program is failing. Sending some debugging to the screen will tell you how much of the program is being run before failing.

mr greywolf

Replies are listed 'Best First'.
Re: Re: A lil module creation advice
by snafu (Chaplain) on Apr 21, 2002 at 02:56 UTC
    Well. This is a good question that I overlooked making clear when I started this thread.

    The program I am writing compiles just fine by itself. It even runs at runtime but the fact that my subs get executed at runtime when they should only be run when called is what's causing the whole script to fail.

    _ _ _ _ _ _ _ _ _ _
    - Jim
    Insert clever comment here...

Re: Re: A lil module creation advice
by snafu (Chaplain) on Apr 22, 2002 at 17:05 UTC
    Hmm. I thought I submitted a reply to this one already but I must have overlooked the submit button a few days. Anyhoo, just so everyone knows...

    I was using strict; as I always do, religiously. I learned my lesson on that one way back at the beginning of my Perl coding days. This suggestion from greywolf, btw, is always an excellent suggestion, nay, rule!

    The script in question was compiling fine by itself.

    Thanks for the input everyone. I just needed to make those two points clear so that at least people knew I wasn't a total tard :)

    _ _ _ _ _ _ _ _ _ _
    - Jim
    Insert clever comment here...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-04-11 08:09 GMT
Find Nodes?
    Voting Booth?

    No recent polls found