Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: How to Save a variable outside of a loop

by Myrddin Wyllt (Hermit)
on Jul 31, 2015 at 21:41 UTC ( [id://1137066]=note: print w/replies, xml ) Need Help??


in reply to How to Save a variable outside of a loop

As well as the re-declared variables, it looks like you have a typo on the line:

if($hitlength == $prev_l and $prevalence == $prev_l){

This should probably be:

if($hitlength == $prev_l and $prevalence == $prev_p){

Replies are listed 'Best First'.
Re^2: How to Save a variable outside of a loop
by Calebros (Initiate) on Jul 31, 2015 at 22:12 UTC
    You are indeed correct, thank you very much!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-24 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found