When it is from a file, I open as follows.
Expand|Select|Wrap|Line Numbers
- Open filename ($filename)
- While(<$filename>){
- #process each line
- }
Expand|Select|Wrap|Line Numbers
- while(<>){
- #process each line
- }
My perl program has the usage as below.
Perl converter.pl --in file <filename or STDIN> --out file <out filename>
Please let me knowhow to handle this. Thanks.