RE: PERL PROGRAM HELP!

2001-06-21 Thread Aaron Craig
At 11:35 20.06.2001 +0100, Govinderjit Dhinsa wrote: >Iv been givin this program to modify, but I can not astblish what some parts >of the program are doing. From > >printf >to >} > >Can any body help please and run through it with me pls! > > > >open iscd,"<$ARGV[0]" or die "Cannot

Re: PERL PROGRAM HELP!

2001-06-20 Thread Gary Stainburn
Hello there, without some specifics, such as example input and required output there's not a lot we can do here. However, for ideas on how to extract the required data, look at using regex (regular expressions) by doing 'perldoc prelre'. For ideas on formatting the report look at perl forma

RE: PERL PROGRAM HELP!

2001-06-20 Thread Kipp, James
This code is a mess, your better off rewriting it. > > open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; > open sortcode,">$ARGV[1]"; > while($line=){ > chomp $line; > @fields=split "\t",$line; > printf sortcode > "\n%6.6s%8.8s%3.3s%27.27s%20.20s%35.35s%35.35s%10.10

Re: PERL PROGRAM HELP!

2001-06-20 Thread Me
> Hi, I am new to perl and have been chucked in the deep end!!! I have been > asked to write a perl script, with a output in report style; > > Description for script: > Read a file, (sorted) > take certain data from the file, (problem) >

RE: PERL PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
Hi, I am new to perl and have been chucked in the deep end!!! I have been asked to write a perl script, with a output in report style; Description for script: Read a file, (sorted) take certain data from the file, (problem) put the cert

Re: PERL PROGRAM HELP!

2001-06-20 Thread Me
> Iv been givin this program to modify, but I can not astblish what some parts > of the program are doing. From > > printf > to > } > > Can any body help please and run through it with me pls! > > > > open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; > open sortcode,">$ARGV[1]"

RE: PERL PROGRAM HELP!

2001-06-20 Thread Govinderjit Dhinsa
Iv been givin this program to modify, but I can not astblish what some parts of the program are doing. From printf to } Can any body help please and run through it with me pls! open iscd,"<$ARGV[0]" or die "Cannot open $ARGV[0]",$!; open sortcode,">$ARGV[1]"; while($line=){