Re: cksum question

2003-11-04 Thread Rob Dixon
Jeff 'Japhy' Pinyan wrote: > > On Nov 4, Raghu Murthy said: > > >#!/usr/bin/perl > > > >use strict; > >use warnings; > > > >my $result; > >$result = system("cksum foo.c | cut -d ' ' -f2"); > >chomp $ckresult; > >print "$ckresult\n"; > > I doubt you did that; $result and $ckresult aren't the same. >

Re: cksum question

2003-11-04 Thread Jeff 'japhy' Pinyan
On Nov 4, Raghu Murthy said: >#!/usr/bin/perl > >use strict; >use warnings; > >my $result; >$result = system("cksum foo.c | cut -d ' ' -f2"); >chomp $ckresult; >print "$ckresult\n"; I doubt you did that; $result and $ckresult aren't the same. >Cksum returns an exit status of 0 if successful. Thi

Re: cksum question

2003-11-04 Thread Rob Dixon
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 s

cksum question

2003-11-04 Thread Raghu Murthy
#!/usr/bin/perl 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 alte