On 1/2/2004 2:04 AM, Norman Zhang wrote:
Hi,

May I ask how could I list a file contents backward in a new file?


What is your definition of backwards?


perl -le 'print reverse <>' some-file-you-want-reversed

perl -le 'print reverse map {join "", reverse split //} <>' some-file-you-want-reversed

Regards,
Randy.


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to