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: Perl Programming Help: Beginner: Re: [alex5161] command line option -n , -p with multiple files...: Edit Log



FishMonger
Veteran / Moderator

May 30, 2017, 2:14 PM


Views: 4883
Re: [alex5161] command line option -n , -p with multiple files...

I have not done any testing, but in order for $. to reset for each file, you'll need to explicitly close the filehandle after testing for eof. The filehandle is ARGV (not sure if it needs to be upper or lowercase).


(This post was edited by FishMonger on May 30, 2017, 2:15 PM)


Edit Log:
Post edited by FishMonger (Veteran) on May 30, 2017, 2:15 PM


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

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