in reply to Re: Simple perl one-liner for transforming text files
in thread Simple perl one-liner for transforming text files

Way too verbose! ;-)
perl -n000 -pe "$_=qq(@{{/(.*?): (.*)/g}}{name,date}\n)"

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.

Replies are listed 'Best First'.
Re: Re: Re: Simple perl one-liner for transforming text files
by BrowserUk (Patriarch) on Mar 06, 2003 at 06:48 UTC

    Sorry, I wasn't wearing my golf shoes:^)

    jdporter++. I physically applauded that once I stared at it long enough to work out how the hell it worked.


    Examine what is said, not who speaks.
    1) When a distinguished but elderly scientist states that something is possible, he is almost certainly right. When he states that something is impossible, he is very probably wrong.
    2) The only way of discovering the limits of the possible is to venture a little way past them into the impossible
    3) Any sufficiently advanced technology is indistinguishable from magic.
    Arthur C. Clarke.