Mailing List Archive

prototypes and use strict
Using 5.002 beta 1g this

use strict;
sub ident ($) { $_[0] }
print ident "foo", "\n";

gives me

Can't use string ("ident") as a subroutine ref while "strict refs" \
in use at t line 3.

. Without the strictness or with parens around "foo" it does what I
expect (it prints "foo\n"). I think it's a bug, but maybe I just don't
get it.

--
Roderick Schertler
roderick@gate.net