Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing hashes

Status
Not open for further replies.

Mattwatters

Technical User
Dec 2, 2003
7
0
0
GB
Could someone please let me know of anyway way of clearing hases. I have tried %whatever = null; but this this does funny things to my tables i am creating from them i.e. it always inserts a zero for some reason where thre shouldnt be one.

cheers
 
[tt]%hash = undef;[/tt] actually creates a single key, undef, with no value (essentially undef). It should spit back a warning about an odd number of arguments in a hash assignment. You can say [tt]undef %hash;[/tt] and it works as well as your [tt]%hash = ();[/tt]

----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top