Re: perl flawed or my fault
- From: yankeeinexile@xxxxxxxxx
- Date: 02 Oct 2006 22:05:23 -0500
"paul" <betterdie@xxxxxxxxx> writes:
Hello all,
please help me the check the following code
use strict;
my $something = 'phal';
my $otherthing = 'paul';
my $note_whom = 'szmuzu\'mi';
defined($something) ? $note_whom = $something : $otherthing =
'singapore';
print "$note_whom \n $otherthing \n";
The result is: singapore
singapore
Really?
lawrence@hummer - /tmp % cat clpm
#!/usr/bin/perl
use strict;
use warnings;
my $something = 'phal';
my $otherthing = 'paul';
my $note_whom = 'szmuzu\'mi';
defined($something) ? $note_whom = $something : $otherthing =
'singapore';
print "$note_whom \n $otherthing \n";
lawrence@hummer - /tmp % perl clpm
singapore
paul
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - lawrenabae@xxxxxxxxxxxxx s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
.
- References:
- perl flawed or my fault
- From: paul
- perl flawed or my fault
- Prev by Date: perl flawed or my fault
- Next by Date: Re: Please help me pass an array from VBA to Perl and populate it. Newbie at wits' end!
- Previous by thread: perl flawed or my fault
- Next by thread: Re: perl flawed or my fault
- Index(es):
Relevant Pages
|