good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
File reading with hashesby Bindo (Acolyte) |
on Aug 08, 2013 at 06:35 UTC ( [id://1048485]=perlquestion: print w/replies, xml ) | Need Help?? |
Bindo has asked for the wisdom of the Perl Monks concerning the following question: Gentlemen I have a file called "MY_FILE" with a certain string(BASEPORT=1000) along with other information, placed on all system user's home directory. I want to have the name of the system user and the value that is mentioned under BASEPORT parameter to be printed on to the screen in following manner User1 --> 1000 User2 --> 5000 I get the following error with what I have attempted so far readline() on closed filehandle FH2 at ./base_ports.pl line 12, <FH2> line 3103 Following is the script
Please could you help. Please feel free to modify the code. Many thanks in advance ./Bindo
Back to
Seekers of Perl Wisdom
|
|