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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced: Re: [shawnhcorey] get File Name with an input redirection Perl: Edit Log

New User

Dec 17, 2009, 9:06 PM

Views: 6100
Re: [shawnhcorey] get File Name with an input redirection Perl

Hi shawnhcorey,

Thanks for your reply. Can you please elaborate your reply. Does that mean that when ever we use an indirect operator with a Input Parameter, we can't get the name of Input parameter..

My requirement is:

if I execute the code as : perl < mytext.DAT

I need the name of first parameter i.e. mytext.DAT

I dont need to print the contents of file but only the file name. I also tried with unshift function but of no use. I could print the contents but not the file name.

So please explain in detail, if possible. Thanks a lot.

(This post was edited by solu_abhi on Dec 17, 2009, 9:10 PM)

Edit Log:
Post edited by solu_abhi (New User) on Dec 17, 2009, 9:10 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