NicoleSwan.com

I like to ride my bike.

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

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 [...]

Dreams

To live in a bike friendlier world. To create the greatest collection of fabulous shoes ever assembled. To see a viable third party in US politics. To get local Rio team riders to acknowledge existence on road.

Get the feed

Search

  • Worth Reading