perl flawed or my fault
- From: "paul" <betterdie@xxxxxxxxx>
- Date: 2 Oct 2006 19:59:52 -0700
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
I don't know why the scalar $note_whom get the value that is assigned
to $otherthing.
Please give me the explaination, and thank you.
.
- Follow-Ups:
- Re: perl flawed or my fault
- From: John W. Krahn
- Re: perl flawed or my fault
- From: DJ Stunks
- Re: perl flawed or my fault
- From: yankeeinexile
- Re: perl flawed or my fault
- Prev by Date: Re: How to delete temporary file after displaying in browser ?
- Next by Date: Re: perl flawed or my fault
- Previous by thread: Please help me pass an array from VBA to Perl and populate it. Newbie at wits' end!
- Next by thread: Re: perl flawed or my fault
- Index(es):
Relevant Pages
|