--- Timothy Kimball <[EMAIL PROTECTED]> wrote:
> Curtis Poe wrote:
> : my ( $data ) = ( $dirty_data =~ /^([-@w.:+, ]+)$/ );
> :
> : Note that a character class does not respect metacharacters like a normal regex.
>You don't
> need
> : to escape most characters.
>
> You still need the backslash for \w. Otherwise it matches only the
> letter w.
>
> In fact the above regex throws a fatal error in 5.6.0: "In string,
> @w now must be written as \@w"; i.e., it thinks you're trying to
> interpolate the array @w. So maybe it would be safer to backslash
> the @ anyway, in case a letter follows it.
>
> -- tdk
Ugh. He's right. No more answering questions before I rush off to work :)
=====
Senior Programmer
Onsite! Technology (http://www.onsitetech.com/)
"Ovid" on http://www.perlmonks.org/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/