in reply to Tie::File strangeness with unshift
There is another option though, which is prototyping. This means that you can provide the compiler with additional information to facilitate the calls to your subroutine. this prototyping is done with the following syntaxsub NAME { CODE }
Note the additional parens. When PROTOTYPES is the empty string, i.e. when you just provide parens, the compiler will always call your function in a void context and the @_ array will be empty.sub NAME (PROTOTYPES) { CODE }
should at least eliminate the first few error messages.sub update_threads() {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tie::File strangeness with unshift
by u914 (Pilgrim) on May 26, 2003 at 00:11 UTC |