in reply to Re^2: Pipe dream
in thread Pipe dream
You could use an empty list as your no-line-returned indicator, but it would require you evaluating the subs in list context and then turning the returned value into a scalar afterward. That would be problematic for some common pipe actions, like reading one line at a time from a file (in list context, the whole file would be read).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Pipe dream
by diotalevi (Canon) on Sep 09, 2005 at 18:10 UTC |