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
[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
[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
[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
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
"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
[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
[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 |
>
On Sat, Feb 02, 2002 at 01:15:16AM -0500, Michael R. Wolf wrote:
> ==
>| Hash iteration |
> ==
>
>
> %aphorism = (
> roses => red,
>
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)
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
"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
1:23am
>
> Unless otherwise directed, fill in the blank.
>
> ==
>| Sigils and data types |
> ==
>
> Sigil Variable type
> = ==
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?
==
14 matches
Mail list logo