Greg Sheridan wrote: > Hi everyone, > > I'm new to this list and I have a very basic question about > regular expressions. > > I inherited a Perl script, and I'm trying to figure out what a > specific line does. > > Here's the line: > > $dose_density =~ s/[A-Za-z\/ ]//g; [] inidicates character class -> replace A thru Z, a thru z, a slash or space with nothing. So $dose_density = 'abcd 123 4 ABCD//' would be be 1234. Wags ;) > > Any help would be greatly appreciated. > > Thanks, > Greg > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com
******************************************************* This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ******************************************************* -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>