in reply to Re: display html file from Perl
in thread display html file from Perl

use strict; use warnings; system("perl ./c1.pl > ./c1.html"); system("/usr/bin/firefox http://localhost:8080/ ./c1.html");

This constructs the HTML file but Firefox returns:

Error: GDK_BACKEND does not match available displays

Replies are listed 'Best First'.
Re^3: display html file from Perl
by LanX (Saint) on Jul 10, 2017 at 14:14 UTC
    This  http://localhost:8080/ ./c1.html looks suspicious. At least the space, and did you really configure your local webserver to know the current working directory of your Perl script?

    I normally use the file:// protocol (+ absolute path) for simpler HTML pages (your title says "file" not application)

    If this doesn't help, fix your Firefox.

    edit

    To be clear this is NOT a Perl problem. Find a solution from the command line.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!