develooper Front page | perl.perl6.language | Postings from September 2002

Re: Regex query

From:
Simon Cozens
Date:
September 22, 2002 14:35
Subject:
Re: Regex query
Message ID:
86bs6pr9lo.fsf@squash.oucs.ox.ac.uk
markus.laire@nic.fi (Markus Laire) writes:
> How do you do C< ($a + $b) * $c > if parentheses are forbidden for 
> mathematical expressions?

I thought that , was actually the list constructor, much as => is the
pair constructor. (And hence 

        a => 1, b => 2

would be a list of pairs.)

Of course, if we're being rigorously regular, this would mean that the
parentheses were optional, and

        @a = 1,2,3,4;

would make sense.

I quite like that.

-- 
"How should I know if it works?  That's what beta testers are for.  I only
coded it."
(Attributed to Linus Torvalds, somewhere in a posting)



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About