Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Perl query
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rajini Naidu  
View profile  
 More options Jun 5 2009, 1:58 pm
Newsgroups: perl.trainers
From: rajinid...@gmail.com (Rajini Naidu)
Date: Fri, 5 Jun 2009 23:28:22 +0530
Local: Fri, Jun 5 2009 1:58 pm
Subject: Perl query

Hi,

This is my code in perl.

   my $include = "foo.1";
 my $ct = "/usr/atria/bin/cleartool";

open my $pipe, "-|", $ct, "desc", $include or die "could not run cleartool:
$!";

When i execute this , I am getting below error.

   meaningless input.

    Uncaught exception from user code:
        Illegal division by zero.

Is there any other way to represent below code in perl,

open my $pipe, "-|", $ct, "desc", $include or die "could not run cleartool:
$!";

Am i missing anything here. Please advise.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Running Wolf  
View profile  
 More options Jun 5 2009, 3:52 pm
Newsgroups: perl.trainers
From: MichaelRunningW...@att.net (Michael Running Wolf)
Date: Fri, 5 Jun 2009 12:52:26 -0700
Local: Fri, Jun 5 2009 3:52 pm
Subject: Re: Perl query

On Jun 5, 2009, at 10:58 AM, Rajini Naidu wrote:

> Hi,

> This is my code in perl.

>    my $include = "foo.1";
>  my $ct = "/usr/atria/bin/cleartool";

Try:

my $command = "$ct desc $include";
open my $pipe, '-|', $command or die "...";

You may be running into machine-dependent behavior of the LIST form of  
open (see perldoc -f open).

Just an idea.  I haven't thought deeply about what the error message  
may mean.

--
Please take note of the changes:
   Old: Michael Running Wolf <MichaelRunningW...@att.net
   New: Michael R. Wolf <MichaelRW...@att.net


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Vromans  
View profile  
 More options Jun 8 2009, 7:32 am
Newsgroups: perl.trainers
From: jvrom...@squirrel.nl (Johan Vromans)
Date: 08 Jun 2009 13:32:31 +0200
Local: Mon, Jun 8 2009 7:32 am
Subject: Re: Perl query

Rajini Naidu <rajinid...@gmail.com> writes:
> Am i missing anything here. Please advise.

It often helps to specify:

- perl version
- system you're running on
- complete source

(If your source was complete, you're missing

 use strict;
 use warnings;

in front of your program.)

-- Johan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »