Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Loop is not working

by toolic (Bishop)
on Oct 03, 2018 at 19:27 UTC ( #1223485=note: print w/replies, xml ) Need Help??


in reply to Loop is not working

If your script hangs, I suspect it is because /usr/local/fsl/bin/feat hangs (whatever that is).

Observations:

  • You are discarding output from the backticks. For debugging purposes (to see if there is output): print `/usr/local/fsl/bin/feat Level1Run1_spec.fsf`;
  • cd .. will not change your directory. You need chdir.
  • The opendir does not really do anything in your code.
  • Customarily, the use lines appear at the top of a script.
  • $s=$s+1 is typically written as $s++
  • For other tips, refer to the Basic debugging checklist.

Replies are listed 'Best First'.
Re^2: Loop is not working
by ozdemmer (Novice) on Oct 04, 2018 at 01:48 UTC

    Thank you so much for taking your time to comment. I used the suggestion by the user named poj. All the best.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-10-18 12:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (74 votes). Check out past polls.

    Notices?