CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Need a Custom or Prewritten Perl Program?: I need a program that...: Re: [Mordanthanus] Reversing the contents of a file: Edit Log



shest75
Novice

Oct 27, 2009, 11:26 AM


Views: 4134
Re: [Mordanthanus] Reversing the contents of a file

Bonjour,

Please try ( you should change file1.txt by the name of your file.

open FILE, "file1.txt" or die $!;
while (<FILE>) {
print reverse;
print scalar reverse;print "\n";
}


(This post was edited by shest75 on Oct 27, 2009, 11:31 AM)


Edit Log:
Post edited by shest75 (Novice) on Oct 27, 2009, 11:31 AM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives