Is there any way that Module::Load (or any other method of runtime loading) can load Devel::Peek such that "Dump 2;" (no parentheses) will work ?C:\>perl -MDevel::Peek -le "Dump 2;" SV = IV(0x1d7f9e8) at 0x1d7f9ec REFCNT = 1 FLAGS = (PADTMP,IOK,READONLY,pIOK) IV = 2
(I'm not the OP, btw - just wondering ...)C:\>perl -le "require Devel::Peek; Devel::Peek->import('Dump'); Dump 2 +;" Number found where operator expected at -e line 1, near "Dump 2" (Do you need to predeclare Dump?) syntax error at -e line 1, near "Dump 2" Execution of -e aborted due to compilation errors. C:\>perl -MModule::Load -le "load 'Devel::Peek'; Devel::Peek->import(' +Dump'); Dump 2;" Number found where operator expected at -e line 1, near "Dump 2" (Do you need to predeclare Dump?) syntax error at -e line 1, near "Dump 2" Execution of -e aborted due to compilation errors.
In reply to Re^2: How can I catch a failure of use?
by syphilis
in thread How can I catch a failure of use?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |