[tpm] adding an INIT block via the command line

John Macdonald john.malcolm.macdonald at gmail.com
Fri Oct 24 10:16:58 PDT 2014


How about:

    perl -e "INIT { code }; do $filename"

On 24 October 2014 13:07, Fulko Hew <fulko.hew at gmail.com> wrote:

> A hopefully quick question...
>
> I have a bunch of programs, and I'd like to do a test on where I execute
> each
> program, but before it actually 'does stuff', but after its done all of its
> 'use' statements, it runs my 2 lines of code.
>
> Sort of doing a:
> perl -e INIT { code } filename
>
> but a -e prevents the running of filename!
>
> I want to do both.
>
> Suggestions anyone ?
>
>
>
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/toronto-pm/attachments/20141024/bb6e5f6e/attachment.html>


More information about the toronto-pm mailing list