Do you know where your variables are? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Here is your program wrapped in code tags, and formatted so it's a little easier to read. I've made comments explaining what's going wrong/on within the code.
It is highly recommended you use strict; and run with Warnings and Taint. I'm not going to rehash the reasons why, when there is already a node on PM such as Use strict warnings and diagnostics or die just waiting to be read. Also, remember to include your shebang line at the top of your program (usually #!perl or #!/usr/bin/perl), or else your program won't run. And if you're on a Windows box, you have to execute the program like this: perl programname.pl or perl -T programname.pl If the program is still giving you problems, please reply back to this thread for additional help. But I implore you to be more descriptive of the problem as it will increase the chances of us being able to help you out. Update: As blakem points out, Anonymous Monk probably did have the <STDIN> after all. Node edited to reflect changes. Sarah If Bill Gates can name a company after his "bedroom" problems, I can have a stupid sig that points it out. In reply to Re: My program it doesn't work could you tell me my mistakes?
by monkeygirl
|
|