Actually, the error message from print do( 'fred' ); confuses me completly.What error message? You are aware of the different variants of do? From perldoc -f do
so probably the file named 'fred' doesn't exist and do returns simply undef - at least that's what it does here (on perl 5.6.0) generating thus a warning about Use of uninitialized value in print ...do BLOCK [...] do SUBROUTINE(LIST) [...] do EXPR Uses the value of EXPR as a filename and executes the contents of the file as a Perl script.
-- Hofmator
In reply to Re3: Anon. array of refs to a range generated list of scalars.
by Hofmator
in thread Anon. array of refs to a range generated list of scalars.
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |