in reply to "require" bug?
"However "require '2.pl'" is before "colored" statement."
2.pl is loaded before the colored statement is executed, but not before it's compiled. Therefore the Perl compiler doesn't know that colored is a function; it thinks it's a bareword filehandle.
em
|
|---|