Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Rea: CRC and Serial Port

by baku (Scribe)
on Dec 06, 2001 at 02:48 UTC ( #129782=note: print w/replies, xml ) Need Help??


in reply to Re: CRC and Serial Port
in thread CRC and Serial Port

If you want to process data one block at a time, set $/ to your field length. That will save you from waiting to slurp the entire "file" before processing it.

Replies are listed 'Best First'.
Re: Rea: CRC and Serial Port
by twerq (Deacon) on Dec 06, 2001 at 21:23 UTC
    true, you can pass a value reference to $/ which translates into a record length, but as far as I know, there's no way to tell it to read 12 "lines", where a line can be variable length.

    --twerq

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129782]
help
Chatterbox?
[Discipulus]: wow i have a good 19.35 in 2017
[choroba]: I had 24.5 in January, but the last three month are below 18.5
[choroba]: and I'm trying hard not to get involved in troll feeding.

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2017-04-26 12:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (475 votes). Check out past polls.