1 This is a class for null file handles. Calling a constructor of this
2 class always succeeds, returning a new null file handle. Writing to
3 any object of this class is always a no-operation, and returns true.
4 Reading from any object of this class is always no-operation, and
5 returns empty-string or empty-list, as appropriate.
8 open(NULL, '>/dev/null') || die "WHAAT?! $!";
9 and get a null FH that way. But not everyone is using an OS