Since you're using read, the write function would be more appropriate as a counterpart than print.
I don't think that's right. The write function is for writing formatted records, from the documentation
Writes a formatted record (possibly multi-line) to the specified FILEHANDLE, using the format associated with that file.
There is no counterpart to read per se, just use print. Perhaps you were confusing write with syswrite which is the counterpart of sysread.
Cheers,
JohnGG
In reply to Re^2: File splitting script
by johngg
in thread File splitting script
by Alien
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |