I am trying to work out how to compile a perl script using pugs.
(Am I on the right mailing list?)

If I do pugs -h, then it suggests to me the -C option will do the
trick, but does not say what value the backend might be.

But I'm also having trouble running the script. It runs OK with perl
5, but pugs complains:

*** Error:
unexpected "f"
expecting ";" or "}" at string_value.p6 line 5, column 5

The script is:

#!/usr/bin/perl
sub test {
    return unless defined wantarray;  # void context, do nothing
    my @parms = @_;
    for (@parms) { tr/a-z/A-Z/ }
    return wantarray ? @parms : $parms[0];
}

print test ("ok")


so it seems to dislike the for, but I guess it's something that comes
before that. Is there a list of incompatibilites with perl 5 anywhere?
(I might add that I know very little at all about perl).
-- 
Colin Adams
Preston Lancashire

Reply via email to