It needlessly uses slices.
Using a (single) slice I would probably do:
for (@{$memoryfile}[0,1]) { LogMess("Error: Binary input data detected",1), return -1 if /[^[:print:]]/; }
Somewhat of an overkill for just two values, but IMHO clearer and also easy to modify if you want something more than 0 and 1 there...
In reply to Re^2: Any idea what this does
by blazar
in thread Any idea what this does
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |