[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] Hans -script for dissapearing data, some errors
****** message to minivend-users from Hans-Joachim Leidinger <jojo@buchonline.net> ******
Sorry! I wrote my email at home and from my head. Look down...
Michael Schwartz wrote:
>
> ****** message to minivend-users from "Michael Schwartz" <michael@panamacom.com> ******
>
> Hi Hans,
> This is the script as I typed it, following your email, it has one
> error.....maybe you can help me out, again :-)
>
> #!/usr/bin/perl -w
>
> #Analog File
> $file1 = "/home/www/test.html";
>
> #New file
> $out ="/home/gandalf/test3.asc";
>
> $i = 0;
> open(IN, $in) || die "canīt open $in: $!";
> open(OUT, ">$out") || die "canīt open $out: $!";
>
> while(defined($line = <IN>) {
> $out = $i."\t".$line;
> $i++
$i++;
> print OUT $out;
> }
> close(IN)
close(IN);
> close(OUT)
close(OUT);
[BIG DEL]
I am a perl newbie! Maybe, you can go to the perl newsgroup and ask them
for help?
Regards,
Joachim
--
-------------Hans-Joachim Leidinger---------------------
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list