If you wish to know the size of DATA, in characters, use the following. It will work on with all line terminators and will all encodings.
$size_of_DATA = read(DATA, $buf='', -s DATA);
It's safe to use -s FILE because the number of characters in a file should never be bigger than the number of bytes in a file.
In reply to Re^10: Extracting Data from a second line
by ikegami
in thread Extracting Data from a second line
by RCP
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |