Re: Perl setup & question.
[email protected] (Philip Perry) Tue, 23 Apr 2002 08:16:50 +0000 (GMT)
| Newsgroups | perl.riscos |
|---|---|
| Message-ID | <[email protected]> |
Hello All, I'm just starting out with Perl, reading the Llama book for a gentle intro and trying to understand some of the documentation. I've done a little BASIC and recently started using Awk... but at heart am more a 'Sibelius type person' than a 'Programmer type person'. So would appreciate a little advice on what is the best way to setup !Perl on my machines? Also does !Perl requires any additional items above what is in the 'perl_113_riscpc.zip' archive? The computers are: 1) RiscPC: RO 3.6, ARM 710, 2+36Mb RAM, 540Mb HD & CD. 2) A7000+: RO 3.71, 72Mb RAM, 1.2Gb HD. both using the New Boot sequence. At first I put !Perl in !Boot.Choices.Boot.Tasks as suggested in the Help file but this lead to it being run at every start-up, opening the Scripts directory and Help file. After a while I moved it to it's own directory $.Programs.Perl, where it would be seen by the Filer before I ran any Perl scripts... but then I noticed that inside !Perl some of the file names had been truncated, so, created a raFS directory and de-archived a fresh copy of !Perl into that. My beginner's hello world scripts appear to run satisfactorily with !Perl in each of the three locations... but I would appreciate some reassurance that any (or all) of these locations is OK... or is there a better setup? ------------------------> On a different topic: A friend has (rather rashly) asked me if it is possible to ammend his cgi scripts so as to display dollar and euro prices (in addition to sterling) on his site. I've written a little extra code which does the calculation, etc... but I'm not sure how to generate a Euro charater - my HTML text was printed before the Euro. Would this do the trick? $dollar_euro_str = " \$$dollar_price, €$euro_price" Best regards, Philip.