Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: "Correct" program style questions

by Ovid (Cardinal)
on Oct 23, 2002 at 19:00 UTC ( #207494=note: print w/ replies, xml ) Need Help??


in reply to Re: "Correct" program style questions
in thread "Correct" program style questions

joe++ wrote: I know, [not importing anything] isn't going to work with HTML::Entities....

Actually, it can work with HTML::Entities. Merely specify an empty import list and fully qualify the function name.

use HTML::Entities (); HTML::Entities::encode_entities( $name );

Alternatively, you could simply require HTML::Entities and not call the import method.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


Comment on Re: Re: "Correct" program style questions
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (13)
As of 2015-07-29 12:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls