SPUG: help with split
Jim Flanagan
jimfl at colltech.com
Thu Jun 7 19:37:30 CDT 2001
--Also Sprache "Brose, Eric" <eric.brose at attws.com> On Thursday, June 7,
2001 5:01 PM -0700:
> I'd like to use the split function, but my delimeter is a decimal
> point and split doesn't like that.
Actually, split likes it too much. Split uses the dot to match any
character. To stop split from interpreting the dot as a special charater,
just put a backslash in front of it.
@stuff = split(/\./, $thingy);
--
Jim Flanagan Senior Consultant, Collective Technologies
jimfl at colltech.com http://www.colltech.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Subscriptions; Email to majordomo at pm.org: ACTION LIST EMAIL
Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
For daily traffic, use spug-list for LIST ; for weekly, spug-list-digest
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
More information about the spug-list
mailing list