biofeng918 has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w $pi3.14159; print"what is the $radius \n"; chomp($radius<STDIN>); $circuit=2*$pi*$radius; print"this is the circumference of a circle r $radius is\n";
when I fulfill it,the perl metioned me that unrecognized character \xA3 at the line2,reply soon,thank you
Update#!/usr/bin/perl -w @names=qw/shanghai beijing nanjing hubei/; print "Enter some numbers from 1 to 4, one per line,then press Ctrl-Z. +\n"; chomp(@number=<STDIN>); foreach(@names){ print "$names[$_-1]\n"; }
janitored by ybiC: Balanced <code> tags around code snippet, as per Monastery convention
Janitored by Arunbear - retitled from 'help me'
Janitored by Arunbear again {sigh} - added code tags around updated code
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unrecognized character in source code
by mattr (Curate) on Oct 09, 2004 at 14:47 UTC | |
|
Re: Unrecognized character in source code
by graff (Chancellor) on Oct 09, 2004 at 14:54 UTC | |
|
Re: Unrecognized character in source code
by biofeng918 (Acolyte) on Oct 09, 2004 at 17:02 UTC | |
by shenme (Priest) on Oct 10, 2004 at 03:10 UTC | |
by biofeng918 (Acolyte) on Oct 19, 2004 at 03:21 UTC | |
by mattr (Curate) on Oct 21, 2004 at 13:33 UTC |