|go ahead... be a heretic|
Variable/if question...by tretin (Friar)
|on Nov 04, 2001 at 12:05 UTC ( #123148=perlquestion: print w/replies, xml )||Need Help??|
tretin has asked for the wisdom of the Perl Monks concerning the following question:
I have once again come to harken at your gates for an answer to one of my many problems.
I just finished going through both the file input/output and looping tutorials and decided I'd try to write up a script that incorporated both aspects. I'm trying to create a simple login script, that prompts the user for his/her name and then the password, then runs a check to see if the names/passwords match; if they do then a file is opened and the lines displayed. I've gotten it to recognize correct/incorrect password/username identification, but I'm having trouble with the opening of the file. If the user/pass check is successfull the file does not open, and if it is unsuccessful it does not open. Maybe it's just too late for me to be attempting to script but here is what I've gotten thus far:
and specifically (or at least I'd assume specifically)where the problem lies, in the following lines :
That's it... and I can't seem to find the problem. Any help at all is immensly appreciated, and I ask that you please bare with me, as I am very very new to the world of Perl (and of programming on the whole) so if there's an obvious problem here please don't laugh too hard at my incompetence :).
Thank you again for your time monks, and again I appreciate any help you can give.
just my 5 cents (ran out of pennies!)
Edit: chipmunk 2001-11-04
Back to Seekers of Perl Wisdom