Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Clear vars?

by JimJx (Beadle)
on Dec 05, 2006 at 19:09 UTC ( [id://587950]=perlquestion: print w/replies, xml ) Need Help??

JimJx has asked for the wisdom of the Perl Monks concerning the following question:

Greetings monks, I have what at first glance seemed simple....

I have a script that submits back to itself. I simply check for the button click by using if ($input{'BT_DelUser'} && ($input{'No'} >= 0)), where the name of the button is BT_DelUser and the choice for which user to delete is $input{'No'};

After the page reloads when the delete is finished, how do I clear both of these values?

I have tried reset, defining both of these values to -1 and everything else that I can think of.

Is there a way to clear these?

Thanks for reading!
Jim

Edit: g0n - code tags

Replies are listed 'Best First'.
Re: Clear vars?
by grep (Monsignor) on Dec 05, 2006 at 19:13 UTC
Re: Clear vars?
by liverpole (Monsignor) on Dec 05, 2006 at 19:15 UTC
    Hi JimJx,

    I think maybe what you want is delete:

    delete $input{'BT_DelUser'}; delete $input{'No'};

    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2024-04-26 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found