home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!s5!is1.is.morgan.com!is.morgan.com!holger
- From: holger@is.morgan.com (Holger Veith)
- Subject: PERL PARSING
- Message-ID: <1992Dec15.172048@is.morgan.com>
- Sender: news@is.morgan.com
- Nntp-Posting-Host: idr110
- Organization: Morgan Stanley - IS
- Date: Tue, 15 Dec 1992 22:20:48 GMT
- Lines: 19
-
- What is the best way to parse a string within PERL where I would like it
- to behave sort of like ksh.
-
- I have used the split command by splitting on white space, but I would
- like everything enclosed in quotes to be one string.
-
- ie.
-
- $x='please "help me split" this line';
-
- -> $a[1]='please'
- $a[2]='help me split'
- $a[3]='this'
- $a[4]='line'
-
-
- Thank you,
-
- Holger.
-