Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Hello im new to programming i need help

by 7stud (Deacon)
on Feb 10, 2013 at 01:23 UTC ( #1018008=note: print w/ replies, xml ) Need Help??


in reply to Hello im new to programming i 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:

$initialfile2 = $file; $initialfile2 = "$file";


Comment on Re: Hello im new to programming i need help
Select or Download Code
Replies are listed 'Best First'.
Re^2: Hello im new to programming i need help
by fahadm89 (Initiate) on Feb 10, 2013 at 01:29 UTC
    sorry im really new at this. i was getting help at school. but now im at home ant dont know what to do. Both @one and @two are grabbing data from a (.pdb) file and them im isolating the x y and z coordinates. i dont know if im explaining correctly.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018008]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2015-07-30 02:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (269 votes), past polls