polka4ever
Technical User
Hello,
Well I have tried a million variations on this! HA! Oh I can't wait until I get through this learning curve for perl. It seems even the smallest stuff is tripping me up at this point.
Anyhow, wanted to run it past you in the forums to see if you can straighten things out in my head.
Can you tell me what is wrong with this?
if (! $small_string=~ /^\s*$/){
print "$small_string\n";
}
Basically what I want to say is if the variable $small_string is NOT equal to just WHITESPACE - then print it. Isn't that what I am saying?
Well I have tried a million variations on this! HA! Oh I can't wait until I get through this learning curve for perl. It seems even the smallest stuff is tripping me up at this point.
Anyhow, wanted to run it past you in the forums to see if you can straighten things out in my head.
Can you tell me what is wrong with this?
if (! $small_string=~ /^\s*$/){
print "$small_string\n";
}
Basically what I want to say is if the variable $small_string is NOT equal to just WHITESPACE - then print it. Isn't that what I am saying?