drake50 has asked for the wisdom of the Perl Monks concerning the following question:
and within the subroutine:if (&readfromsocket(*new_sock)){ do some stuff}
sub readfromsocket{ local $socketname = shift; if (defined($lineread = <$socketname>)) {do some stuff} }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: globbing,file handles and subroutines
by webfiend (Vicar) on Mar 15, 2003 at 01:30 UTC | |
by drake50 (Pilgrim) on Mar 15, 2003 at 02:24 UTC | |
by l2kashe (Deacon) on Mar 15, 2003 at 04:08 UTC | |
by drake50 (Pilgrim) on Mar 15, 2003 at 04:57 UTC | |
by drake50 (Pilgrim) on Mar 15, 2003 at 02:57 UTC |