Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
@one = readdir (DIR);
If anyone else in the world is going to read your code, e.g. you post your code on a programming forum, than you have to use descriptive variable names. If I told you that I had an array named @ten, and I asked you to guess what each element of the array was, what would be your guess? What are the odds you would be correct? Your @one array contains file names, so how about naming it @file_names or @fnames? In your opinion, what is the difference between these two lines of code:
In reply to Re: Hello im new to programming i need help
by 7stud
|
|