In article <[EMAIL PROTECTED]>, Kevin Pfeiffer wrote: > In article <[EMAIL PROTECTED]>, Charles K. Clarkson > wrote: > >> Kevin Pfeiffer <[EMAIL PROTECTED]> wrote: >> >> : Where I am stuck is on the question: >> : >> : Given an @array such as >> : ("Title of Song", "Artist", "Title", "Another Artist", "etc"), >> : is there an easy way to strip out the quotation marks. >> >> s/"//g foreach @array; > > Ahhh, that's so nice. I should have known better and just tried that. I'm > guessing that in such a format internal quote marks would have to be > escaped? So I could do: > > s/[^\]"//g... ?
What I came up with (by trying instead of just asking): ;-) # removes leading and trailing quote marks s/^"|"$//g foreach @pairs; I decided that since this really isn't CSV there would be no escaping necessary. -- Kevin Pfeiffer -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]