?b ä, 2003-11-05 11:07, Edward Peschko ?g?D?G
> my @file =  (1,2,3,4);
> pp('-o', 'file.exe', sub { print STDERR Data::Dumper([EMAIL PROTECTED]); })
> ie: where pp uses the surrounding context as well as the libraries, files, etc. in 
> order to create an executable.  (running file.exe should print '1,2,3,4')
> Is this possible? I looked through the docs briefly, and it didn't seem to be.. 
> If it isn't, anyone got a good workaround?

An interesting thought. I think it is possible to assign key=>val as
--info pairs to "pp", and have them accessible as $PAR::Info{$key}, but
full-fledged closures is probably more trouble than its worth.

An obvious workaround is to generate an extra "config" file and pack it
along, then use PAR::read_file() to access it.

Also, I'm curious: What's the actual use-case for you to warrant such a
feature?

Thanks,
/Autrijus/

Attachment: signature.asc
Description: =?UTF-8?Q?=E9=80=99=E6=98=AF=E6=95=B8=E4=BD=8D=E5=8A=A0=E7=B0=BD?= =?UTF-8?Q?=E7=9A=84=E9=83=B5?= =?UTF-8?Q?=E4=BB=B6?=

Reply via email to