in reply to Re: print line to file on win32
in thread print line to file on win32

Thanks, this is what I needed
my $out; open($out, '>', "prefix$x.txt") or die $!; print $out $line; $x++;

work great now. Why ? Perl is great at not placing a filehandle on a log file on win32 that I am tailing, but I have a vbscript that has to process each line. It is a looping vbscript, and I don't want to fork it for each line, rather have it loop picking up lines/files. Thanks

Replies are listed 'Best First'.
Re^3: print line to file on win32
by ikegami (Patriarch) on Oct 29, 2007 at 19:50 UTC

    Perl is great at not placing a filehandle on a log file on win32

    Could you please explain what this means? We can probably help you fix your real problem instead of your hack.