Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Read file text and find fibonacci series

by haukex (Abbot)
on Jan 03, 2018 at 09:00 UTC ( #1206585=note: print w/replies, xml ) Need Help??


in reply to Re^2: Read file text and find fibonacci series
in thread Read file text and find fibonacci series

The %fib was built but not actually used.

Well not quite, it is used for what you said:

to help looking for a fib whose initial digits are a fib too

This is what I was using it for, since I didn't feel like getting too fancy with the regex. The code I wrote was mostly just an implementation of my interpretation of the description the OP gave:

"Check 4 is fibonacci number , no , go ahaed 49 is fibonacci number , no, next 496 is fibonacci ,no, 4969 after 44693 [sic] ,after 496934 no.There isnt any fibonacci , go to next digit and do it again 9 , 96,969,9693,96934."
I wonder if any value of %fib could be an array with more than 3 elements?

Good question, I didn't try cranking up $DIGITS past 60 yet...

the task is too much unclear

Agreed, which is why I just implemented the part I (thought I) understood ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206585]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-06-24 08:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?