hash key with a regexp

2001-02-20 Thread Greg Wardawy
Hello all, Is it correct to say: print if $var1 == $hash{$key =~ /$var2\d+/}; or: print if $var1 == $hash{$key\d+}; if I need a conditional print for all keys of the hash which starts with $var2? The reason I'm asking is that I have a comma separated list: LT00430,31 LT00432,32 LT00504,33

RE: hash key with a regexp

2001-02-20 Thread Joseph P. Discenza
Greg Wardawy wrote, on Tuesday, February 20, 2001 15:22 : Hello all, Is it correct to say: print if $var1 == $hash{$key =~ : /$var2\d+/}; or: print if $var1 == $hash{$key\d+}; if I need a : conditional print for all keys of the hash which starts with : $var2? The reason I'm asking is that I hav

Re: hash key with a regexp

2001-02-20 Thread SCOTT_SISSON
EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent by: cc: [EMAIL PROT