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

Re: [FWP] JAPH made up entirely of double-chars?



John Porter <jdporter@min.net> wrote:

> Sean McAfee wrote:
> > ...no Perl built-in is made of double-characters,
> > nor is any operator (except qq).  
> 
> variables: $$ @@ %% 
> operators: == && || -- ++ ** << >>
> also: "" '' `` //

As I remember from one of Abigail's bizarre sigs, ** is a 
typeglob as well as an operator.  And you forgot .. in the 
list of operators.  There's also ?? to go with //.

> some single-characters can be validly repeated, although
> making use of them would be quite a challenge:
> 
> ~ ! ; # \ ( ) [ ] { }

Commas, spaces, and newlines can be repeated as well.  Also, 
letters and digits can be repeated in barewords and numbers -- 
and regex modifiers can be repeated (though only /ee makes any 
difference).  Colons can be repeated in variable names, but 
probably not in any variable names that are usable for this.

> (Hmm; that's almost the whole language...)

Still hard to write a program in it, much less a JAPH.

-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe