in reply to Re: perl cgi-bin script
in thread perl cgi-bin script

While you are correct in that it is a stylistic error, I'm quite certain that piece of code does what is expected. It is in fact returning an array slice, but since the expression in the brackets is a scalar the array slice is only one element and it is simply treated as a scalar.
C:\WINNT\Fonts>perl -e"@x=qw/foo bar qux/; $_=@x[1]; print" bar