in reply to Re^2: How to use cgi table in index.pm perl
in thread How to use cgi table in newindex.pm perl

i cant use print in index.pm

$h->table(...) returns a string, which you can save in a variable and return from a function like your sub getContent.

Replies are listed 'Best First'.
Re^4: How to use cgi table in index.pm perl
by Tabish (Acolyte) on Dec 13, 2017 at 12:13 UTC

    I treid but doesnt work for me

      If you are using XAMPP then you probably don't have HTML::Tiny installed. Download the file Tiny.pm from here and save it in C:\xampp\perl\vendor\lib\HTML

      poj

        If you are using XAMPP then you probably don't have HTML::Tiny installed. Download the file Tiny.pm from here and save it in C:\xampp\perl\vendor\lib\HTML

        Why copy/paste when you can

        cpan -i HTML::Tiny or cpanm -i HTML::Tiny or cpanp -i HTML::Tiny
        ?