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
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
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
> 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)
>
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
> 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]"
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=){