Glenn Linderman wrote:
> 
> This deserves a "me too".
> 
> Perl6 RFC Librarian wrote:
> 
> > The camel and the docs include this example:
> 
> >    if (/Time: (..):(..):(..)/) {
> >         $hours = $1;
> >         $minutes = $2;
> >         $seconds = $3;
> >     }
> >
> > This then becomes:
> >
> >   /Time: (?$hours=..):(?$minutes=..):(?$seconds=..)/
> >
> > This is more maintainable than counting the brackets and easier to understand
> > for a complex regex.  And one does not have to worry about the scope of $1 etc.

imagine its strength along with defined record structures and a Pascal-like C<with>


-- 
                          David Nicol 816.235.1187 [EMAIL PROTECTED]
                         Useless use of a void in constant context

Reply via email to