Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Use of Carp outside of package won't compile...

by benizi (Hermit)
on Dec 20, 2007 at 06:06 UTC ( [id://658070]=note: print w/replies, xml ) Need Help??


in reply to Use of Carp outside of package won't compile...

How could I determine what is necessary for other "use" statements?

As a general rule, pragmas start with lowercase letters while modules start with uppercase letters. The two are different, as well-explained in previous replies. But looking at the first letter usually tells you which you're dealing with. After a while, you'll get used to the convention. Perl doesn't enforce this, but it's standard, common, and good practice.

  • Comment on Re: Use of Carp outside of package won't compile...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found