how to create custom modules in perl and how to import all modules with single command?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to create custom modules in perl and how to import all modules with single command?
# 1  
Old 04-02-2012
how to create custom modules in perl and how to import all modules with single command?

I have some custom functions which i want to use in perl Scripting all time.
i want to How to create modules in perl and how to import them.
Also if i create 15 modules and i want to > import all at once then how can i import?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl Modules installation in one go.

Hi, I have a task to install a list of perl modules in several servers. It's very tedious task to install it one by one through CPAN. Can I have option in CPAN to feed that list so that it install all the modules. (0 Replies)
Discussion started by: nixhead
0 Replies

2. Shell Programming and Scripting

Script to install Perl Modules

Hi guys, I need to upgrade perl modules on about multiple machines. I'm writing a for loop for it. for i in 1 2 3 4 5 6; do ssh server$i " sudo cpan Mozilla::CA, sudo cpan LWP::UserAgent, sudo cpan LWP::Protocol::https, sudo cpan IO::Socket::SSL, sudo cpan Net::SSL,... (2 Replies)
Discussion started by: scj2012
2 Replies

3. Shell Programming and Scripting

perl modules installation

I have installed perl in windows. Now I would like to install spreadsheet::xlsx & DateTime::Format::Excel modules(also few more) at a time instead of installing them seperately. Could you please let me know how to install more than 1 module as a batch file in windows OS ? Thanks in... (5 Replies)
Discussion started by: giridhar276
5 Replies

4. Shell Programming and Scripting

How to find which perl modules version is used?

Hi All, I am rather new to the world of Perl programming. I have a question regarding the perl modules. I have a linux box running slackware 12.2 and has perl installed by default there (version 5.10.0) and it has several modules installed namely DBI and DBD::mysql that I wanted to upgrade. ... (2 Replies)
Discussion started by: aherrys
2 Replies

5. Red Hat

installing perl modules

Hi All, I have a customer asking me to install these perl modules on redhat 4 ent: File::Temp Getopt::Long DBD::mysql Mail::Mailer DBD::DB2 Any idea how can I install those modules. Thanks for any comment you may add. (3 Replies)
Discussion started by: itik
3 Replies

6. Shell Programming and Scripting

How to install perl modules

Hi. i installed perl 5.8.8.822 in my D: drive(windows xp).When im trying to install IO-Stringy.pm module( or any module for tat matter ) it is getting installed in 'c:\temp\please run installed script' folder no matter from where ever i run the ppm installation.The path variable is set to... (3 Replies)
Discussion started by: Anuj8584
3 Replies

7. UNIX for Advanced & Expert Users

Installing GD Perl graphics modules

I'm on Mac OSX, I *think* I succeeded in installing libpng. I can see usr/local/lib/libpng.dylib and its brethren are in place after executing ./configure nd and the holy make install. (2 Replies)
Discussion started by: andrewduncan
2 Replies

8. UNIX for Dummies Questions & Answers

installing perl modules

I resulted to using /usr/sfw/bin/gmake to install my perl modules until i ran into a problem installing perl/Tk Tk-804.028 gmake: Entering directory `/export/home/Tk-804.028/pod' Sorry no HTML building yet gmake: Leaving directory `/export/home/Tk-804.028/pod' I dont unstand what the error... (2 Replies)
Discussion started by: jameskay
2 Replies

9. Shell Programming and Scripting

extracting used perl modules

Hi, I am trying to extract the includes from all the perl programs in my application space;ie. i want the list of all used modules in my application. First i did a grep like 'grep -r "^use.*;$" * > ~dileepp/search.txt' which gives me the output in the form "filename:line containing use"... (0 Replies)
Discussion started by: DILEEP410
0 Replies

10. Shell Programming and Scripting

Installing Perl Modules

I have a script that uses the File::Listing module. I am trying to install it, but I read the ReadMe and it states that the following modules should be installed first: URI MIME-Base64 HTML-Parser libnet Digest-MD5 Compress-Zlib I am very new to Perl and would apprciate anyone's input on... (1 Reply)
Discussion started by: ssmiths001
1 Replies
Login or Register to Ask a Question
SWF(3pm)						User Contributed Perl Documentation						  SWF(3pm)

NAME
SWF - an autoloadable interface module for Ming - a library for generating ShockWave Flash format movies. SYNOPSIS
# Don't import other modules use SWF; # import all SWF modules use SWF qw(:ALL); # import SWF::Shape and SWF::Movie only. use SWF qw(Shape Movie); DESCRIPTION
By default, SWF doesn't import other SWF classes. You may, however, instruct SWF to import all modules by using the following syntax: use SWF qw(:ALL); METHODS
SWF::setScale($scale); Sets scale to $scale. SWF::getScale(); Get the current scale. 20 means 20 twips (1/20 of a pixel) and is the default value. SWF::setVersion($version); Sets SWF version for the header of flashfiles. Choose a value between 4 and 7 for your flashmovies. If you are unsure take 5. SWF::setCubicThreshold($num) Sets the threshold error for drawing cubic beziers. Lower is more accurate, hence larger file size. SWF::setSWFCompression($level); Set output compression level. Returns previous value. $level is integer between 0 and 9. Note: This function is called automatic too by $movie->save($filename[,$level]) and $movie->output([$level]) if the optional parameter $level is given. SWF::useConstants($flags); ? AUTHOR
Soheil Seyfaie (soheil at users.sourceforge.net). SEE ALSO
SWF.pm related modules: SWF::Action, SWF::Bitmap, SWF::Button, SWF::Constants, SWF::DisplayItem, SWF::Fill, SWF::Font, SWF::Gradient, SWF::Morph, SWF::Movie, SWF::MovieClip, SWF::PrebuiltClip, SWF::Shape, SWF::Sound, SWF::TextField, SWF::Text, SWF::VideoStream, SWF::Sprite other projects: SWF::Builder - a pure perl alternative to Ming perl v5.14.2 2012-03-05 SWF(3pm)