perl programming


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting perl programming
# 1  
Old 02-03-2012
perl programming

how to link the linux files in perl on the local webpage ????

suppose we have some results and want to get them published on the local webpage of our internal site. how this can be done using HTML and perl together , so that the results are published directly on the webpage.

thanks
kullu
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl programming issue

Dears, I want to print filename and count of each file in perl but failing to implement. `find $srcFolder -maxdepth 1 -type f -name "*$workDate*$fileExt" -exec sh -c ' && printf "$workDate|%s|%s\n" "$(wc -l<"$0")" *$workDate*$fileExt' {} \ >> /Sadique/filelog.out \\; 2> /dev/null`; ... (2 Replies)
Discussion started by: sadique.manzar
2 Replies

2. Shell Programming and Scripting

Perl programming help

I am trying to make a simple perl program that reads 20 characters upstream from the codon ATG in a given sequence. The following is what I have. I just dont know how to make the program read 20 characters upstream from the ATG codon. print "\nThis program will read 20 characters upstream... (1 Reply)
Discussion started by: patiencenpray
1 Replies

3. Programming

Help me with perl programming

Hi, i am very beginer to perl, I am reading one xml file and i am creating hash table for that file. i written code like this #!/usr/bin/perl use warnings; use strict; use XML::LibXML::Reader; #Reading XML with a pull parser my $file; open( $file, 'formal.xml'); my $reader =... (8 Replies)
Discussion started by: veerubiji
8 Replies

4. Programming

Programming help - Perl !

I am having a text file with Vivek 50 Ram 34 Hulk 45 Vivek 23 Ram 23 Vivek 55 Now I need a perl script to display the fields of 1st column & the 2nd column with summation (& avoid the duplicates). Vivek 128 Ram 57 hulk 45 Plz help me... (1 Reply)
Discussion started by: gameboy87
1 Replies

5. Shell Programming and Scripting

Perl programming error

Hi, everyone!! i am new to perl programming.. plz help me. #!C:/perl/bin use warnings; use strict; use Text::CSV_XS; my @rows = ""; my $row; my $count; my $fh; my @fields = ""; my $csv = Text::CSV_XS->new ({binary =>1}) or die "cannot use CSV:" .Text::CSV->error_diag (); open... (3 Replies)
Discussion started by: kvth
3 Replies

6. Shell Programming and Scripting

Perl Vs Shell Programming

Can someone please tell me what the big deal about perl is? i have been doing shell programming for quite a number of years and I have to say, there's very little if any thing that I can't do in shell programming. i just need to investigate how to do it. so, my question is, does deep... (1 Reply)
Discussion started by: SkySmart
1 Replies

7. UNIX for Dummies Questions & Answers

Is PERL a programming language?

I need a small and simple clarification... Can someone tell me whether PERL is a programming language or not. Also, can shell scripts also considered as programming language or not. Also, please tell me the exact difference between programming language and scripting. Please help.... (3 Replies)
Discussion started by: Anjan1
3 Replies

8. Programming

Perl Programming with Mapping

use strict; print "Enter last 4 digits of phone number:"; chomp(my $number=<>); die "Invalid number: '$number'\n" unless $number=~/^\d{4}$/; my @d=split(undef,$number); my %map={ 2=>"", 3=>"", 4=>"", 5=>"", 6=>"", 7=>"", 8=>"", 9=>"", }; my $r=$map{$d}.$map{$d}.$map{$d}.$map{$d};... (1 Reply)
Discussion started by: tturn33
1 Replies

9. Shell Programming and Scripting

Perl Programming for Splitting

Hi, I am extracting SQL queries into a file and the file is as follows ********************************************************* select BatchKey ,restartStatus ,batchContextBuffer ,batchPgmId ,StartKey , EndKey ,Mcbatchcontrol_ver from qsecminload.Mcbatchcontrol_t where RefId = :1 ... (5 Replies)
Discussion started by: sagarbsa
5 Replies

10. UNIX for Dummies Questions & Answers

PERL - DB programming

Hi friends, What are the possible ways to connect to DB2 database from Perl (on unix). I need to connect to DB2 and get records for further processing. Can you please suggest the best possible way. I heard about DBI/DBD, if you have some sample scripts please post them too. Thanks in advance. (3 Replies)
Discussion started by: satguyz
3 Replies
Login or Register to Ask a Question
Debian::Package::HTML(3pm)				User Contributed Perl Documentation				Debian::Package::HTML(3pm)

NAME
Debian::Package::HTML - Generates a webpage information (and Linda/Lintian checks) about a Debian binary or source package using HTML::Tem- plate SYNOPSIS
use strict; use Debian::Package::HTML; my $package = Debian::Package::HTML->new(%packageHash); $package->output(%contextHash); REQUIRES
HTML::Template EXPORTS
Nothing DESCRIPTION
This module outputs a webpage using HTML::Template templates which resumes the information of a normal build environment for a package in Debian (source files, binary packages and changelogs) using Linda/Lintian for sanity checks. It is useful for making unified presentation webpages for those packages which are being sponsorized by someone in Debian. METHODS
Constructor * $object->new(%packageHash) Constructs an $object with all information concerning the package, including location for binary/source files, changelogs, diffs, pris- tine sources, as well as templates, charsets and other settings. Possible elements for the hash are: "binary", "control", "source", "diff", "changes", each one of them specifying one of the five possible files generated by a package building process in Debian. "control" is mandatory. Output * $object->output(%contextHash) Does the actual XHTML output. Possible elements for the hash are: "briefing" (boolean): if TRUE, WebInfo will look for a briefing.html in the current directory, and will include the content in the resulting output. Useful for introducing commentaries without touching the final HTML. Defaults to FALSE. "charset": determines the output charset. Defaults to "ISO-8859-1". "resultTemplate": specifies the location of an HTML::Template style template for output. This is mandatory, and defaults to "result.tmpl" "pageStyle": specifies the location of a CSS file which might be included. "doChecks" (boolean): if TRUE, WebInfo will run linda and lintian over the control file and will generate a ${packageName}-checks.txt file which will be included in the final output. Defaults to FALSE. "dump": determines where to put the resulting HTML output. Defaults to index.html DIAGNOSTICS
No DSC could be found/open You need to specify a DSC control file using the "control" parameter for the new() method. If you don't, WebInfo can't do much. The package will inform if the file could not be FOUND or could not be OPEN. Please report the bugs, I'd love to work on them. CUSTOMIZATION
Template customization You can customize the final output using your own HTML::Template template file and specifying it as a parameter for the output() method. The following template variable names are honored by WebInfo: packageName: the name of the package packageVersion: the version of the package maintainerName: the name of the maintainer maintainerMail: the e-mail address of the maintainer maintainerPlus: a "+" separated name/surname for the maintainer (useful for URL searching) pageCharset: the page charset (customizable in the output() method) pageStyle: the CSS file (customizable in the output() method) packagef: the available package files as an array reference, so HTML::Template should iterate over the "packagefile" variable. date: the date specified by the current locale doChecks: a boolean variable specifying if Linda/Lintian checks were made briefing: a boolean variable specifying if a briefing.html file should be included Example template An example template is in: http://debian.bureado.com.ve/package-info/result.tmpl HTML outputs with that template and no CSS look like: http://debian.bureado.com.ve/falselogin/ EXAMPLES
Only a control file #!/usr/bin/perl use strict; use warnings; use Debian::Package::HTML; my $package = Debian::Package::HTML->new( "control" => "falselogin.dsc" ); $package->output ( "resultTemplate" => "result.tmpl", "dump" => "index.html" ); A complete building environment #!/usr/bin/perl use strict; use warnings; use Debian::Package::HTML; my $package = Debian::Package::HTML->new("control" => "falselogin.dsc", "binary" => "falselogin.deb", "diff" => "falselogin.diff.gz", "source" => "falselogin.orig.tar.gz", "changes" => "falselogin.changes" ; $package -> output ( "resultTemplate" => "anotherTemplate.tmpl", "style" => "groovy-style.css", "charset" => "UTF-8", "doChecks" => "1", "dump" => "firstPackage.html" ); Some ideas Well, throw the files generated by your compilations (dpkg-buildpackage, i.e.) in a /var/www/<my package> served by your webserver of choice and run a small program using Debian::Package::HTML and a nice CSS/Template. You will have a great webpage for all your Debian pack- ages, really useful if you're not yet a Developer and need to handle several packages with your sponsors. AUTHOR
Jose Parrella (joseparrella@cantv.net) wrote the original code, then modularized and OOed the code. Thanks go to Christian Sanchez (csanchez@unplug.org.ve) who helped with the original HTML::Template'ing COPYRIGHT
Copyright 2006 Jose Parrella. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
perl(1), HTML::Template. perl v5.8.8 2008-03-10 Debian::Package::HTML(3pm)