XP is just a number | |
PerlMonks |
Re^4: help with regular expression requiredby PitifulProgrammer (Acolyte) |
on Aug 18, 2014 at 15:25 UTC ( [id://1097863]=note: print w/replies, xml ) | Need Help?? |
Dear Monks,
Thank you so much for your help The code worked fine, but curiosity got the better of me and I tried to find a way how specify both infile and outfile on the command line. This was the point when I realised that I have not yet proper understood how functions and parameters work, especially how to pass arguments to a function. I guess it is back to books for me. While reading the code, I was thinking that parsefile was the crucial element and this is where my infile should go through. However I could not establish the connection between parsefile and the $ofh open in the first lines. However when I tried the new code I always got the following message:
I figure the programm does not know which file is passed for input Is there a possibility to specify the in and outfile in the code? Please find my endeavours below Comments and explanations are appreciated.
Thanks a mil in advance for helping us noobs out here kind regards C.
In Section
Seekers of Perl Wisdom
|
|