in reply to system function problem
#!/usr/bin/perl -w use strict; my $file = 'temp.html'; open HTML, ">$file" or die "Damn: $file $!"; print HTML "<html><body>\n"; print HTML "<B> $_ </B>" while <>; print HTML "\n</body></html>\n"; close HTML or die $!; # close(STDIN); # links breaks if I close it explicitly die "System command failed $_" if system('links', $file) == -1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: system function problem
by sk (Curate) on Sep 02, 2004 at 02:21 UTC | |
by sk (Curate) on Sep 03, 2004 at 04:09 UTC | |
by sk (Curate) on Sep 19, 2004 at 21:31 UTC |