Could someone tell me how I am not using the HTML::FromText module correctly

This is more or less copied from the documentation but does not produce html?

TIA

Owen


#!/usr/bin/perl

        use HTML::FromText;
        use strict;

        my $text = '/data/PerlScripts/test.txt';

        my $html = text2html(
                         $text,
                         urls  => 1,
                         email => 1,
                        );

        print "$html\n";
----------------------------------
produces 

/data/PerlScripts/test.txt

----------------------------------

This is $text


Functional interface that just wraps the OO interface.
This function is exported by default. If you don't want it you can 
http://www.cpan.org require
the module or use [EMAIL PROTECTED] it with an empty list.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to