"Jonathan Peterson" <[EMAIL PROTECTED]> writes:
> So far as I can see select operates globally across all package
> namespaces. Which is annoying.

Yup.

> Thus:
> 
> $obj = Class->new;
> $obj->some_method();  # Calls a select() within package Class
> print "wibble;                # prints to modified file handle, not STDOUT!!
> 
> Is there some way of making it not do so?

The traditional solution is to do:

my $oldfh = select( $newfh );
print "hello world";
select($oldfh);

Which is a bit ugly, but this /is/ Perl.  ;-)

-Dom

-- 
| Semantico: creators of major online resources          |
|       URL: http://www.semantico.com/                   |
|       Tel: +44 (1273) 722222                           |
|   Address: 33 Bond St., Brighton, Sussex, BN1 1RD, UK. |

Reply via email to