Gossamer Forum
Home : General : Perl Programming :

deleting value

Quote Reply
deleting value
Hi; Because I'm playing with some scripts I have a second question today!

How can I delete a value?

If I do $in{'ID'} = ""; the value stilll exists (but would be empty). But I alsow would like to have the value deleted. It's for the following part of the code:


# We are doing something very dangerous in this script (using
# the same value (=ID) twice) So we need to assing the ID-value
# to $job_id and clean $in{'ID'} for security. As long as we
# don't put ID in the job_form everything is OK.

$jobid = $in{'ID'};
$in{'ID'} = ""; # flush at once


Quote Reply
Re: deleting value In reply to
In Reply To:
Hi; Because I'm playing with some scripts I have a second question today!
Ask as many as you like :)

What happens if you leave $in{'ID'} = ""; in there?

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: deleting value In reply to
perldoc -f delete

-g


s/(\d{2})/chr($1)/ge + print if $_ = '8284703280698276687967';