Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Byte ranges of binary files

by PearlsOfWisdom (Initiate)
on Jul 27, 2013 at 22:39 UTC ( [id://1046693]=note: print w/replies, xml ) Need Help??


in reply to Re: Byte ranges of binary files
in thread Byte ranges of binary files

Question... doesn't last stop the processing prematurely before the rest of the while block gets a chance to execute ?

Replies are listed 'Best First'.
Re^3: Byte ranges of binary files
by RichardK (Parson) on Jul 28, 2013 at 10:22 UTC

    No.

    what do you think the 'or' is doing in that statement?

    hint: Have a look at at 'logical or' in perlop

      Ok, fair enough. But I've tried it and it's not showing me the love in terms of actually working !

      I've tried everything... all the examples here, creating new code based around a for loop, everything but I still can't get it to come up with the right answer.

      By right answer, I mean my code at http://pastebin.com/mz3JiSQV .... coming up with the same answer when asked to calculate for a part of a file that it does when asked to come up with a calculation for a full file (created by using "Dd" to extract from the full file into a second file.

      I'm running out of ideas, totally lost and completely frustrated. Surely its not an impossibility for Perl to accomplish such a simple task ?!?

        I've tried everything...

        Well, that code in that patebin doesn't actually show that, for example none of the logic/variable-manipulation from your original question ( Byte ranges of binary files ) shows up in that pastebin

        Maybe you'd like to forget about variables for a minute and describe the algorithm you're trying to implement in words?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2024-03-28 10:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found