That very well could be, but if I don't have a module installed, I would expect an error message.
If I, someone who has used Perl since ~2001, doesn't get an error message from a missing package when I'm testing for valid output, how could one expect OP or a new user to know what to expect from code without any knowledge?
Perhaps something in the upstream package should be told to say something. I'm not bitching, I'm just stating a point. There's something missing here :)
-stevieb
ps. I copied and pasted your exact code.
pps. I suppose what I'm saying here is that if you are going to respond to a thread to help someone, either ensure the module you recommend errors out if dependencies aren't found, or put a clause in your post that says "may not work if X, Y, or Z isn't installed". Think about it... if you were a new user, would you immediately think to look up the perldoc info for a module if all you were looking for was code and you didn't see a responsible piece about "read perldoc for X module"?
In reply to Re^4: How to add input history
by stevieb
in thread How to add input history
by zsl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |