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

Re3: Character class question

by allolex (Curate)
on Apr 25, 2004 at 21:56 UTC ( #348033=note: print w/ replies, xml ) Need Help??

in reply to Re:^2 Character class question
in thread Character class question

OK, now that we know what version you're running, go ahead and add these things at the top of your programs for the time being:

use strict; # Helps to prevent a few common coding + # "mistakes" use warnings; # Turns on "lexically-scoped" warnings, # a bit better than -w use diagnostics; # Makes error messages more helpful

If I had known about Diagnostics from the beginning, I would have saved myself so much work... ;)

Update: Fixed improper capitalization as pointed out by the nice AM.

Damon Allen Davison

Comment on Re3: Character class question
Download Code
Replies are listed 'Best First'.
Re: Re3: Character class question
by Anomynous Monk (Scribe) on Apr 25, 2004 at 23:50 UTC
    The proper invocation is use diagnostics;. With the capital D, it will fail to find the module on case-sensitive filesystems. On case-insensitive filesystems, where is the same file as, you will not get an error loading the module, but the import method that enables diagnostics won't be called (because Diagnostics->import is called instead, which doesn't exist.)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-11-29 14:24 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls