Check if a hash is empty

2003-01-10 Thread NYIMI Jose (BMB)
Hello, If(keys %hash){ #do ... } Could you suggest an other way, please ? Thanks in advance. José. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sol

Re: Check if a hash is empty

2003-01-10 Thread Victor Tsang
if (%hash){ $ do } Tor. "NYIMI Jose (BMB)" wrote: > > Hello, > > If(keys %hash){ > #do ... > } > > Could you suggest an other way, please ? > > Thanks in advance. > > José. > > DISCLAIMER > > "This e-mail and any attachment thereto may contain information which

Re: Check if a hash is empty

2003-01-10 Thread Rob Dixon
Hi I'm wondering why you want another way, as this is slower than it needs to be but shouldn't cause any problems, but you can just do: if (%hash) { : } which is neater. HTH, Rob "Nyimi Jose" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..