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

Re: [MacPerl] 99 bottles



>Cute!  I had to replace some "s"'s with "S", because BBEdit and Macperl
>were confusing it with the substitution operator.  I also had to replace
>all "q" with "Q" for a similar reason.
>
><shrug>
>
>-Jeff Lowrey

This has never been a problem for me using Alpha and MacPerl. I'll try to
remember this in future program postings once I know exactly what the
solution is.

Now that I think about it Brian McNett once warned me...
 "Note the single quotes around 'q' and 's'.
  The reason for this is that  'q' and 's' are reserved words in Perl.
  Perl itself is smart enough to  know that they aren't intended as
  reserved words in this context, but the syntax colorer in BBEdit
  isn't quite that smart.  So to indicate explicitly that I don't
  mean q}} or s}} (both very real possibilities)..."


Does this mean, for instance, that the line
   $dur{s}   = .25 * $tempo_factor;
should be
   $dur{'s'}   = .25 * $tempo_factor;
?


Where else in the code was this a problem?


Would it have helped if
   $song = <<"EOF";
had been
   $song = <<'EOF';
?


Sorry for the hassle. I do appreciate the chance to have my stuff field
tested and reported on by so many so quickly.

Thanks,
David Seay
http://www.mastercall.com/g-s/



===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org