in reply to Regexp for alphabetical order match within the string
Do you really need it to be a regex?
# $str defined elsewhere print "Is alphabetical\n" if( $str eq join '', sort split //, $str );
----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer
: () { :|:& };:
Note: All code is untested, unless otherwise stated
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regexp for alphabetical order match within the string
by sauoq (Abbot) on Oct 30, 2003 at 19:09 UTC | |
by tlhf (Scribe) on Oct 30, 2003 at 19:45 UTC | |
by pg (Canon) on Oct 30, 2003 at 20:37 UTC | |
by Roy Johnson (Monsignor) on Oct 30, 2003 at 21:32 UTC | |
by sauoq (Abbot) on Oct 30, 2003 at 21:00 UTC | |
|
Re: Re: Regexp for alphabetical order match within the string
by asarih (Hermit) on Oct 30, 2003 at 19:37 UTC | |
by tlhf (Scribe) on Oct 30, 2003 at 19:56 UTC |