Re: seek parameters

2003-12-16 Thread Sisyphus
Arms, Mike wrote: Well, I could see a possibility here, but this is total speculation as I do not know the underlying implentation of the sysseek function. Think of the case of function prototypes: sub f (\@) { print 'foo'; } my @a = qw(b c d e f z); f( @a[-2,-3,-1] ); I get this error: T

RE: seek parameters

2003-12-16 Thread Arms, Mike
ture as an array slice could be a single parameter (rather than three). -- Mike Arms > -Original Message- > From: Sisyphus [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 16, 2003 4:27 PM > Cc: Win32 perl > Subject: Re: seek parameters > > > Glenn L

Re: seek parameters

2003-12-16 Thread Sisyphus
Glenn Linderman wrote: Here's a strangeness: my $res = sysseek( @stk[ -2, -3, -1 ] ); fails to compile, but my $res = sysseek( $stk[ -2 ], $stk[ -3 ], $stk[ -1 ] ); compiles fine. As far as I can tell, they have the same effect. And curiously, the error from the first is about the nu

seek parameters

2003-12-16 Thread Glenn Linderman
Here's a strangeness: my $res = sysseek( @stk[ -2, -3, -1 ] ); fails to compile, but my $res = sysseek( $stk[ -2 ], $stk[ -3 ], $stk[ -1 ] ); compiles fine. As far as I can tell, they have the same effect. And curiously, the error from the first is about the number of parameters. Ca