Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: encode problems on AS400

by Anonymous Monk
on Mar 13, 2018 at 12:49 UTC ( #1210818=note: print w/replies, xml ) Need Help??

in reply to encode problems on AS400

In detail: seek to a point before the end of the file which you anticipate will be before the last-strings that you ... ahem ... seek. Now start reading, knowing that you probably landed right in the middle of a string (but not the string you want anyway). Read the remaining strings and, say, push them onto the end of an array. When you reach the end of the file, verify that the array contains at least three strings. An array-slice consisting of the last three strings is, in order, the data that you ... seek. (Do not stack the presumed-incomplete string that you probably landed smack-dab in the middle of ...)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-07-23 10:07 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (462 votes). Check out past polls.