Hello,
I came into an old perl program... I know, what it should do - but I donīt know how it works... (my first contact with perl)
It fills in a query file and the result is a report of a db-table.
Here a part of the prog:
#!/usr/bin/perl
use CGI qw(:standard);
# declaration
my ($sd,$datum,$pa,@sa02,...)
$datum='09.06.2006'
$sd="/sciptdir";
$pa="./pa.cgi";
`"$sd"/ABGL 02 "$datum" > "$sd"/erg02`;
@sa02=`"$pa" "$sd"/erg02`
:
for ($i=0;$i<$laenge;$i++){
foreach $i (@spalte){
print $sa02[$i];
:
:
The file ABGL looks like this:
echo "Number[_arg0,1]="
echo "Type[_arg3,1]="$1
echo "Date[_arg9,0]="$2
echo "_disp=3"
echo "Tour[_arg4,1]="
The output at the end contains columns like
zipcode,number,type,company,name,...
The source must be one of the db-tables, but how can I see, what he really accesses???
Are there any other files for configuration?
Does anyone understand my problem? Can anyone explain this prog to me???
Thanks in advance!
sabine