in reply to Re^4: XML::Twig Support for Parameter Entities (require)
in thread XML::Twig Support for Parameter Entities
Maybe you should stop, then. There is good reason for most people not paying attention to the return value from 'require'.
For your use case, 'do' would be more appropriate than 'require'.
$ echo 13 > lucky.pl $ perl -l print do 'lucky.pl'; print require 'lucky.pl'; print do 'lucky.pl'; __END__ 13 1 13 $
Which actually makes me a little sad. Being able to reasonably use the return value from 'require' would have some nice benefits.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: XML::Twig Support for Parameter Entities (%INC)
by shmem (Chancellor) on Aug 13, 2015 at 07:29 UTC | |
by tye (Sage) on Aug 13, 2015 at 07:37 UTC | |
by shmem (Chancellor) on Aug 13, 2015 at 08:23 UTC | |
by tye (Sage) on Aug 13, 2015 at 08:36 UTC | |
by shmem (Chancellor) on Aug 13, 2015 at 08:59 UTC |