in reply to Re^2: Better Way of Manipulating Array Elements
in thread Better Way of Manipulating Array Elements
perl -pe's/(d)/new($1)/; s/\n/, / unless eof'
But since capturing a literal regex is silly anyway, the best I can think of at the moment is
perl -pe's/d/new(d)/;s/\n/, / unless eof'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Better Way of Manipulating Array Elements
by ikegami (Patriarch) on May 20, 2009 at 00:05 UTC | |
by morgon (Priest) on May 20, 2009 at 00:19 UTC |