in reply to Re: Restriction on getting multiline data into a string
in thread Restriction on getting multiline data into a string

I would suggest using read rather than sysread unless you have a specific reason not to. The main reason being that read cooperates better with other filehandle commands.

Performance is not a major reason. Performance varies depending on platform and specifics of how you use it. Lots of small calls to sysread should be slower than the same calls to read. On some operating systems and versions of Perl, stdio is slow and so read is slower.

  • Comment on Re: Re: Restriction on getting multiline data into a string