"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.
emIn reply to Re: "require" bug?
by tobyink
in thread "require" bug?
by bt1204
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |