[% my @cmd = `/usr/bin/tail -15 /usr/local/apache2/log/access_log`; my $str = "
"; for ( @cmd ) { chomp; $str .= "$_
\n"; } $str; %] #### [% my $cmd = '/usr/bin/tail -15 /usr/local/apache2/log/access_log'; my $str = "
"; open TAIL, "$cmd|" or $str .= "$!"; while ( ) { chomp; $str .= "$_
\n"; } close(TAIL); $str; %]