For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > July 2005 > how do i...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how do i...
Tom Allison

2005-07-31, 5:15 pm

There must be some way of doing this but I can not find it.

Given a module that expects arguments of (\*STDIN, \*STDOUT)
I would really rather pass this through memory once from $var1 to $var2
because the data is small and file IO is going to be very costly.

How do you "fake" it?

typeglobs?
Tom Allison

2005-07-31, 10:00 pm

Tom Allison wrote:
> There must be some way of doing this but I can not find it.
>
> Given a module that expects arguments of (\*STDIN, \*STDOUT)
> I would really rather pass this through memory once from $var1 to $var2
> because the data is small and file IO is going to be very costly.
>
> How do you "fake" it?
>
> typeglobs?
>


Sorry guys for wasting all your bandwidth.

I don't find the answer in dead tree books but I find the answer in the
frickin' perldocs.

perldocs rock!

Now if I would only read them... :)

BTW:

open (IN, ">", $var);
open (OUT, "<", $new_var);
call them as (\*IN, \*OUT)
close IN;
close OUT;

done....
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com