| | |
perl project command line arg?
![]() |
•
•
Join Date: Dec 2008
Posts: 14
Reputation:
Solved Threads: 0
hi ive got this assignment to do, ive got to write a perl program that analyses a text file to obtain statistics. Need some help with this particular section
when run the program should check if an argument has been provided if not the program should prompt for and accept input of a file name from the keyboard
i assume this has something to do with command line arguments however im finding it hard to find any sort of reference, the materials i have arent all that brilliant on how to properly code this for starters not even sure im looking in the right place
when run the program should check if an argument has been provided if not the program should prompt for and accept input of a file name from the keyboard
i assume this has something to do with command line arguments however im finding it hard to find any sort of reference, the materials i have arent all that brilliant on how to properly code this for starters not even sure im looking in the right place
http://www.perl.org/ and a Camel Book
First thing you need to search for is all about the array @ARGV
First thing you need to search for is all about the array @ARGV
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
--
If your code lacks code tags, you will be IGNORED
--
If your code lacks code tags, you will be IGNORED
![]() |
Other Threads in the Perl Forum
- Previous Thread: retreive query string
- Next Thread: In perl script system("cd c:\mnt"); is not working.
Views: 957 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Perl






