in reply to split question
Cheers - L~R$delimiter = '|'; $delimiter = quotemeta $delimiter; @list = split /$delimiter/ , $line;
Update:
Of course this is overkill - you could just escape it with a backslash. It just demonstrates how you would escape all metacharacters if they were not known ahead of time.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: split question
by duff (Parson) on Jan 30, 2004 at 22:54 UTC | |
|
Re: Re: split question
by Anonymous Monk on Jan 30, 2004 at 22:51 UTC |