Re: command help using open/backticks

2002-11-07 Thread Steve Grazzini
Nikola Janceski <[EMAIL PROTECTED]> wrote:
>>
>> is there a way to use the PROGRAM LIST format for backticks 
>> or open the same way you can for exec and system?
>
> I have found one work around, but I was hoping there would be 
> some other way..
> 
> perhaps this suggestion can make it into Perl 6?
> 
> current work around:
> perldoc perlipc
> search for "execute something without the shell's interference"

If you're talking about the 5.8 perlipc, then that's the only way
to do it, AFAIK.  

But in case you haven't seen this yet, it's at least nicer than
the old work-around:

  require 5.008;
  sub my_readpipe {
open my $fh, '-|', @_;
<$fh>
  }

-- 
Steve

perldoc -qa.j | perl -lpe '($_)=m("(.*)")'

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: command help using open/backticks

2002-11-07 Thread Nikola Janceski
I have found one work around, but I was hoping there would be some other
way..

perhaps this suggestion can make it into Perl 6?

current work around:
perldoc perlipc
search for "execute something without the shell's interference"

> -Original Message-
> From: Nikola Janceski [mailto:nikola_janceski@;summithq.com]
> Sent: Thursday, November 07, 2002 11:21 AM
> To: Beginners (E-mail)
> Subject: command help using open/backticks
> 
> 
> Here's my situation...
> 
> I have a command I need to run and parse the output of, BUT 
> the command is
> longer than 255 characters.
> is there a way to use the PROGRAM LIST format for backticks 
> or open the same
> way you can for exec and system?
> 
> Nikola Janceski
> 
> There is no great concurrence between learning and wisdom.
> -- Francis Bacon
> 
> 
> --
> --
> 
> The views and opinions expressed in this email message are 
> the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




command help using open/backticks

2002-11-07 Thread Nikola Janceski
Here's my situation...

I have a command I need to run and parse the output of, BUT the command is
longer than 255 characters.
is there a way to use the PROGRAM LIST format for backticks or open the same
way you can for exec and system?

Nikola Janceski

There is no great concurrence between learning and wisdom.
-- Francis Bacon




The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]