Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Hash Tie's DESTROY & DBI

by tretin (Friar)
on Jan 11, 2002 at 05:16 UTC ( #137881=note: print w/replies, xml ) Need Help??


in reply to Re: Hash Tie's DESTROY & DBI
in thread Hash Tie's DESTROY & DBI

so by saying that die does not work in your script, that means that you tried and die did not work or did not produce any error (or something of that nature) or you assumed it would not, or something else? I am interested to know (since I do not know much about DBI) why it would not work there.

I know many do not like to useeval because of security reasons but, if you used it (in correspondence w/ $@) would that catch the errors if die did/could not? or would it not work for the same reason die would not/could not?

thank you for your time

-tretin

Replies are listed 'Best First'.
Re: Re: Re: Hash Tie's DESTROY & DBI
by runrig (Abbot) on Jan 11, 2002 at 05:23 UTC
    I know many do not like to use eval because of security reasons

    eval "$data_from_tainted_source" has both security and performance issues.
    eval { block_of_code() } does not (at least not due to the eval itself), and die'ing in an eval then checking $@ is a common method of 'exception handling' in perl.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (1)
As of 2022-01-27 03:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (70 votes). Check out past polls.

    Notices?