in reply to Conditional question

if ( cmd = hw ) is wrong on many levels. A single "=" is an assignment, not a comparison; and unless you've created a constant using use constant var => "value";, then you can't use bare words.

Replies are listed 'Best First'.
Re^2: Conditional question
by Mr.Clean (Initiate) on Oct 19, 2007 at 20:03 UTC
    Sorry. I was in a hurry while typing this and I tried using quotes on "hw" before but i don't think it worked. I'm new to PERL so try not to be to hard on me please(this is the first language I've even attempted to learn). So, yeah. Note: this is not a reply to just perlfan's post. It is to all posts.