Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-11 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "Michael R. Wolf" <[EMAIL PROTECTED]>: > > If not, I re-assert that there are 4 false values and that every thing else is true. > "" > "0" > 0 > undef > It's not simple anyway. 0.0 is a false value, too, while "0.0" is true value :-) Same

Re: Perl trainer requests beginner help

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Michael R. Wolf) writes: > I'd like a few volunteers to take a test that I've put > together for an "Introduction to Perl" class that I teach. > If you are a beginner or recent "graduate" of an intro > course and have a few minutes, would you time yourself > taking this test an

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (Andrea Holstein) writes: > In article <[EMAIL PROTECTED]> wrote "John W. Krahn" <[EMAIL PROTECTED]>: [...] > > "00" is TRUE > > "0" is FALSE > > It's perhaps not so important for a beginners course, > but important to know. > > Last week, I wasted half an hour for understand

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-10 Thread Michael R. Wolf
[EMAIL PROTECTED] (John W. Krahn) writes: > "Michael R. Wolf" wrote: > > > > [EMAIL PROTECTED] (John W. Krahn) writes: > > > > > > Are you sure there are only three? :-) > > > > > > $ perl -le' > > > print qq(undef is FALSE) unless undef; > > > print qq("" is FALSE)unless ""; > > > print q

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-03 Thread Andrea Holstein
In article <[EMAIL PROTECTED]> wrote "John W. Krahn" <[EMAIL PROTECTED]>: > print q("0e0" is ), "0e0" ? "TRUE" : "FALSE"; > print q( 0e0 is ), 0e0 ? "TRUE" : "FALSE"; > ' > "0e0" is TRUE > 0e0 is FALSE Even without floats, there's a curious behaviour: > print q("00" is ), "00" ? "TRUE" : "FA

Re: is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-02 Thread John W. Krahn
"Michael R. Wolf" wrote: > > [EMAIL PROTECTED] (John W. Krahn) writes: > > > > Are you sure there are only three? :-) > > > > $ perl -le' > > print qq(undef is FALSE) unless undef; > > print qq("" is FALSE)unless ""; > > print qq("0" is FALSE) unless "0"; > > print qq(0 is FALSE) unle

is false self-evident? [was Re: Perl trainer requests beginner help]

2002-02-02 Thread Michael R. Wolf
[EMAIL PROTECTED] (John W. Krahn) writes: > "Michael R. Wolf" wrote: > > [...] > > Any value that is not false is true. What 3 values indicate > > false? > > > Are you sure there are only three? :-) > > $ perl -le' > print qq(undef is FALSE) unless undef; > print qq("" is FALSE)unless

Re: Perl trainer requests beginner help

2002-02-02 Thread Michael R. Wolf
[EMAIL PROTECTED] (Peter Scott) writes: > At 01:15 AM 2/2/2002 -0500, Michael R. Wolf wrote: > > >I don't usually give quizes at the end of class, but a > >client of mine has requested it. (Required it in fact. No > >test, no payment!) > >[snip] > > | Sigils and data types | >

Re: Perl trainer requests beginner help

2002-02-02 Thread Paul Johnson
On Sat, Feb 02, 2002 at 01:15:16AM -0500, Michael R. Wolf wrote: > == >| Hash iteration | > == > > > %aphorism = ( > roses => red, >

Re: Perl trainer requests beginner help

2002-02-02 Thread Paul Johnson
On Sat, Feb 02, 2002 at 04:10:58AM -0800, John W. Krahn wrote: > "Michael R. Wolf" wrote: > > Any value that is not false is true. What 3 values indicate > > false? > > > Are you sure there are only three? :-) > > $ perl -le' > print qq(undef is FALSE) unless undef; > print qq("" is FALSE)

Re: Perl trainer requests beginner help

2002-02-02 Thread Peter Scott
At 01:15 AM 2/2/2002 -0500, Michael R. Wolf wrote: >I don't usually give quizes at the end of class, but a >client of mine has requested it. (Required it in fact. No >test, no payment!) >[snip] > | Sigils and data types | >[snip] > > * _ You're teaching typegl

Re: Perl trainer requests beginner help

2002-02-02 Thread John W. Krahn
"Michael R. Wolf" wrote: > > I'd like a few volunteers to take a test that I've put > together for an "Introduction to Perl" class that I teach. > If you are a beginner or recent "graduate" of an intro > course and have a few minutes, would you time yourself > taking this test and send me the res

Re: Perl trainer requests beginner help

2002-02-02 Thread sfritz
1:23am > > Unless otherwise directed, fill in the blank. > > == >| Sigils and data types | > == > > Sigil Variable type > = ==

Perl trainer requests beginner help

2002-02-01 Thread Michael R. Wolf
I'd like a few volunteers to take a test that I've put together for an "Introduction to Perl" class that I teach. If you are a beginner or recent "graduate" of an intro course and have a few minutes, would you time yourself taking this test and send me the results? ==