The only problem I see with John's code is that it addumes that
the print statement will print a newline, which it doesn't [at least on my
installation of V5.8].
Na, John's smarter than you give him credit for here. Here was the code:
On Dec 13, 2003, at 11:20 PM, John W. Krahn wrote:
$ perl -le' @temp = split(/#/, "abc#def#ghi#jkl"); print for @temp; '
Lookup that -l command-line switch, which is mighty handy and probably underused... ;)
James
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>