10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I took the copy of the production module to the home directory and executing the module.
one of the test prdmsk.pm module is present in the home directory ctskk. would like to know whether the below syntax is correct.
use strict;
use lib "/home/ssprod/ctskk";
use lib::Prdmsk;
... (0 Replies)
Discussion started by: ramkumar15
0 Replies
2. Shell Programming and Scripting
Hi
We have to create a perl script..for part of a project
I ceated a script that called another perl module
use AppUtil::VMUtil;
But have been told that we need to incorpurate that module into my script...(with comments)
Would you know how to copy or place a module from one script... (2 Replies)
Discussion started by: olearydc
2 Replies
3. Shell Programming and Scripting
All,
Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program.
Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies
4. Shell Programming and Scripting
Hi guys,
im having real difficulty getting my head around perl and rrdtool and was hoping someone could help
I want to run a perl script from cron which retrieves the data every 5 mins, creates .rrd's if not already created, and updates the DS from the reultsHash or $key, then creates the... (2 Replies)
Discussion started by: jeffersno1
2 Replies
5. Shell Programming and Scripting
Hi Guru's,
Pardon me for the breach of rules.....
I have very little knowledge about Shell Programming and Scripting hope you guys help me out of this troble
I have very little time hence could not find the right way to direct my queries.
coming to the problem
I need to call a... (2 Replies)
Discussion started by: saikrishna_tung
2 Replies
6. Shell Programming and Scripting
Hi all,
I need to create a matrix of variable rows and columns. Right now i have 3 rows and two columns and following values.
Output something like
TypeA TypeB
TestCase1 Pass Fail
TestCase2 Pass ... (2 Replies)
Discussion started by: jakSun8
2 Replies
7. Shell Programming and Scripting
Hello once again:
One thing that seems to be a nice feature is a progress gauge... so I can see how long an operation will take for a task to complete if it is requiring a lot of processing or the file is enormous. I have seen references to gauge operations, but I don't know anything about it or... (1 Reply)
Discussion started by: ccox85
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have the following simple CGI script, just containg header:
#!/usr/bin/perl -w
use CGI ':standard';
use lib "/home/myname/lib/perl5/site_perl/5.8.5/";
use Mail::Sendmail;
I also have included this directive in ~/public_html/.htaccess :
SetEnv PERL5LIB... (0 Replies)
Discussion started by: monkfan
0 Replies
9. Shell Programming and Scripting
I want to replace a Perl module name in all my Perl Scripts in the cgi-bin directory. How is it possible?
I have the following statement in my scripts
use myUtil;
I want to change it to
use myUtil777;
Regards,
Rahul (2 Replies)
Discussion started by: rahulrathod
2 Replies
10. Shell Programming and Scripting
Problem: I have a shell script that will be called by a Perl module that will connect to a db and delete rows. The Perl module will be called by CRON. I am using a Perl module to call a shell script because I need to get the db connection from Perl.
Here is the Perl pseudocode:
... (4 Replies)
Discussion started by: mh53j_fe
4 Replies
Template::Plugin::GD(3pm) User Contributed Perl Documentation Template::Plugin::GD(3pm)
NAME
Template::Plugin::GD - GD plugin(s) for the Template Toolkit
SYNOPSIS
[% USE GD;
# create an image
img = GD.image(width, height)
# allocate some colors
black = img.colorAllocate(0, 0, 0);
red = img.colorAllocate(255, 0, 0);
blue = img.colorAllocate(0, 0, 255);
# draw a blue oval
img.arc(50, 50, 95, 75, 0, 360, blue);
# fill it with red
img.fill(50, 50, red);
# output binary image in PNG format
img.png | redirect('example.png');
%]
DESCRIPTION
The Template-GD distribution provides a number of Template Toolkit plugin modules to interface with Lincoln Stein's GD modules. These in
turn provide an interface to Thomas Boutell's GD graphics library.
These plugins were distributed as part of the Template Toolkit until version 2.15 released in February 2006. At this time they were
extracted into this separate distribution.
For general information on the Template Toolkit see the documentation for the Template module or <http://template-toolkit.org>. For infor-
mation on using plugins, see Template::Plugins and "USE" in Template::Manual::Directives.
METHODS
The GD plugin module provides a number of methods to create various other GD objects. But first you need to load the GD plugin.
[% USE GD %]
Then you can call the following objects against it.
image(width, height)
Creates a new GD::Image object.
[% image = GD.image(100, 200) %]
polygon()
Creates a new GD::Polygon object.
[% poly = GD.polygon;
poly.addPt(50,0);
poly.addPt(99,99);
poly.addPt(0,99);
image.filledPolygon(poly, blue);
%]
text()
Creates a new GD::Text object.
[% text = GD.text;
text.set_text('Some text');
%]
GD PLUGINS
These are the GD plugins provided in this distribution.
Template::Plugin::GD
Front-end module to the GD plugin collection.
Template::Plugin::GD::Image
Plugin interface providing direct access to the GD::Image module.
[% USE image = GD.Image %]
Template::Plugin::GD::Polygon
Plugin interface providing direct access to the GD::Polygon module.
[% USE poly = GD.Polygon;
poly.addPt(50,0);
poly.addPt(99,99);
poly.addPt(0,99);
image.filledPolygon(poly, blue);
%]
Template::Plugin::GD::Text
Plugin interface providing direct access to the GD::Text module.
[% USE text = GD.Text;
text.set_text('Some text');
%]
Template::Plugin::GD::Text::Align
Plugin interface to the GD::Text::Align module for creating aligned text.
Template::Plugin::GD::Text::Wrap
Plugin interface to the GD::Text::Wrap module for creating wrapped text.
Template::Plugin::GD::Graph::area
Plugin interface to the GD::Graph::area module for creating area graphics with axes and legends.
Template::Plugin::GD::Graph::bars3d
Plugin interface to the GD::Graph::bars3d module for creating 3D bar graphs with axes and legends.
Template::Plugin::GD::Graph::bars
Plugin interface to the GD::Graph::bars module for creating bar graphs with axes and legends.
Template::Plugin::GD::Graph::lines3d
Plugin interface to the GD::Graph::lines3d module for creating 3D line graphs with axes and legends.
Template::Plugin::GD::Graph::lines
Plugin interface to the GD::Graph::lines module for creating line graphs with axes and legends.
Template::Plugin::GD::Graph::linespoints
Plugin interface to the GD::Graph::linespoints module for creating line/point graphs with axes and legends
Template::Plugin::GD::Graph::mixed
Plugin interface to the GD::Graph::mixed module for creating mixed graphs with axes and legends.
Template::Plugin::GD::Graph::pie3d
Plugin interface to the GD::Graph::pie3d module for creating 3D pie charts with legends.
Template::Plugin::GD::Graph::pie
Plugin interface to the GD::Graph::pie module for creating pie charts with legends.
Template::Plugin::GD::Graph::points
Plugin interface to the GD::Graph::points module for creating point graphs with axes and legends
Template::Plugin::GD::Constants
Provides access to various GD constants.
[% USE gdc = GD.Constants;
font = gdc.gdLargeFont
%]
AUTHORS
Thomas Boutell wrote the GD graphics library. Lincoln D. Stein wrote the Perl GD modules and Martien Verbruggen wrote the GD::Text and
GD::Graph modules that interface with it. Craig Barratt wrote the GD plugins for the Template Toolkit. Andy Wardley wrote the Template
Toolkit. Larry wrote Perl. Brian and Dennis wrote C. Dennis and Ken wrote Unix.
VERSION
This is version 2.66 of the Template::Plugin::GD module set.
COPYRIGHT
Copyright (C) 2001 Craig Barratt, 2006 Andy Wardley.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
Template, Template::Plugins, GD
perl v5.8.8 2008-03-01 Template::Plugin::GD(3pm)