NicoleSwan.com

I’m in a holding pattern.

NicoleSwan.com header image 4

Entries Tagged as 'Perl'

perl tips in case you tend to forget things like I do

January 15th, 2004 · No Comments

So, you want to test string equality in Perl? You just use ‘==’ right? Wrong. In Perl, that will only test number equality which could cause a few problems and inconsistencies.

The Wrong Way:

$mystring = “”;

# wrong way
if ( $mystring == “” )
{
print $mystring; #will never print
}

The […]

[Read more →]

Tags: Perl