in reply to Re: Re: Learning Exercise in thread Learning Exercise
>>2. || is equilivent to or?
Yes also, && is and, ne is !=, not is ! and so on...
>>. Kind of like #2, does | just allow you to specify more than one option in an 'or' fashion?
| is the regex is the aleternation operator. Its pretty cool. You should check it out, very powerful :-)
>> 4. What's the deal with subroutine cls?!
Well you were using system("clear") or something like that which is not really portable. Those prints are the ansi escape sequence for clearing the screen and putting the cursor on the upper left corner.
>> 5. my $tmp = (); just sets $tmp to undef, right?
Yes. I was orgianally going to do something with it, besides being just a scalar but I didn't have enough time. So I tured it back into a scalar and never changed the parens, they're unnecessary. As I said it was a quick hack.
|