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

Re: [FWP] Constants as array refs



On Thu, Mar 23, 2000 at 04:09:46PM -0500, Jeff Pinyan wrote:
> More importantly, it is necessary to remember that subscripts are treated
> as barewords if the subscript is a legal Perl "word" (which is any string
> matching:  (note I excluded leading and trailing whitespace, because I
> don't think they enter into it at all)
> 
>   m{
>     \A             # beginning of string
>     (?:
>       [^\W\d]      # any non-digit
>       \w+          # followed by any a-zA-Z0-9_ ("alphanumberscore")
        ^^^

I believe that should be \w*.  A bareword may be one character long.

Ronald

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