Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

problem installing HTML::Template

by teddyttas (Novice)
on Oct 10, 2012 at 09:42 UTC ( #998185=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Premature end of
    + script headers: helloworld.tmpl.pl
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Bad name after p
    +rivlibexp' at C:/wamp/perl/lib/Config.pm line 1219.\r
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation fail
    +ed in require at C:/wamp/perl/lib/DynaLoader.pm line 25.\r
    ...
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] Compilation fail
    +ed in require at C:/wamp/www/helloworld.tmpl.pl line 6.\r
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] BEGIN failed--co
    +mpilation aborted at C:/wamp/www/helloworld.tmpl.pl line 6.\r
    [Wed Oct 10 11:26:33 2012] [error] [client 127.0.0.1] File does not ex
    +ist: C:/wamp/www/favicon.ico, referer: http://localhost/helloworld.tm
    +pl.pl
    
  2. or download this
    #!c:/wamp/perl/bin/perl.exe
    ##
    ...
    
    # print the template
    print $template->output;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://998185]
Approved by marto
help
Chatterbox?
[Lady_Aleena]: File::Find doesn't have a simple sub wanted example, like get the name of the file.
[Discipulus]: there is also find2perl with your perl installation
[Discipulus]: and in the wanted sub you just calculate the duretion and add it the total, stop
[shmem]: sub wanted { push @files, $File::Find::name if $File::Find::name =~/\.mp3$/ }
[Lady_Aleena]: shmem, that is understandable! The two examples in File::Find don't make sense to me on a quick glance.
[marioroy]: LA if the find worked from Unix command line, or does it not. Likely a quoting issue inside Perl qx.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2017-04-23 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (432 votes). Check out past polls.