[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] All these new updates to MacPerl...



I tried to run the first script from Learning MacPerl which goes
like this.  I compiled the script under MacPerl 5.1or2. This has
been drawan from"Learning Perl" by Randal Schwartz and Tom
Christiansen.  When I run the script it shows nothing other
than the "syntax" ok.  Do I need to have a news version?

#!/usr/bin/perl -w
print "What is your name?";
$naem = <STDIN>;
chomp ($naem);
if ($name eq "Randal") {
print "Hello,Randal!  How good of you to be here!\n";
}  else {
print "Hello, $name!\n";
}

Amit


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch