run 1.pl, see nothing:(======1.pl====== require '2.pl'; print colored ['red'], "test"; ======2.pl====== use Term::ANSIColor; 1; ================
ps: however this example works fine (shows TEST is RED):
======3.pl====== use Term::ANSIColor; print colored ['red'], "test"; ================
Update:
Thank you! However "require '2.pl'" is before "colored" statement. Could you please explain why it happens "too late" to be interpreted as a function?In reply to "require" bug? by bt1204
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |