in reply to Re: Any idea what this does
in thread Any idea what this does
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Any idea what this does
by Util (Priest) on May 29, 2007 at 15:43 UTC | |
by blazar (Canon) on May 29, 2007 at 16:13 UTC |