Thread: Quick question
View Single Post
  #4  
Old 12-22-2006, 07:01 AM
sesmar
I built it I will Support it!
 
Join Date: Jun 2005
Location: Michigan
Posts: 214
Default

You want to do it like this:

Code:
if (($text=~/hail/i)&&(${$name}==2)){
At least in regular perl that will work.

This is what I used to test it:
Code:
$var1 = "var2";
$var2 = "Testing";

print "$var1 \n";
print "${$var1} \n";
print "$var2 \n";
__________________
Reply With Quote