in reply to
How to read code from file and execute it in loop ?
Wrap the code in the file in
sub somename { ... }
then
do 'file';
once outside the loop
and call
somename()
within the loop.
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"
Comment on
Re: How to read code from file and execute it in loop ?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom