Raghu Murthy wrote:
>
> use strict;
> use warnings;
>
> my $result;
> $result = system("cksum foo.c | cut -d ' ' -f2");
> chomp $ckresult;
> print "$ckresult\n";
>
> Cksum returns an exit status of 0 if successful. This script gives out the
> exit status. How can I remove the exit status from the script.
>
> Is there an alternate way to do it using unpack. Any help would be
> appreciated.

Hi Raghu.

I'm sorry, your straw broke this camel's back.

Read your Perl man pages. In particular

  chomp $ckresult;
  print "$ckresult\n";

is idiocy.

Don't guess: learn.

Rob



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

Reply via email to