Still does not make sense?*shrug* Makes sense, for sure. With the MySQL abstraction at hand, go and apply that abstraction to your problem.
It definitely doesn't make sense trying to help somebody who says "Please help me with doing something, but I won't tell you what it is".
That said, another attempt: of course you can keep a connection to "some program" open, but only as long as the lifetime of your current perl process lasts. You can feed multiple file names to that program, but only if the calling semantics of that program support that way of feeding data, i.e. if it reads from STDIN. If your invoked program only handles arguments on its command line, there's no way, because you cannot extend the argument list after the fact.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re^5: batch processing via single open
by shmem
in thread batch processing via single open
by karden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |