09-29-2014
(No any reply on pretty simple question: not many Perl developers?)
Finally, I am using such way:
- file named as a Perl module: with 'pm' in extension.
- Starting Perl in 'interactive' mode I use -M<module_name> and -I<dir_name>
- if I need it in some Perl-script that stared with sheband #!/usr/bin/perl I have on that line additionaly -I<dir_name> and one of starting line:
USE <module_name>
So, the <module_name> is the file name without the .pm extension, and
-I<dir_name> is including to @INC array the directory of the file, allowing the Perl to search for the module (under USE) in that directory.
And, finaly, to avoid typing for starting Perl interactively, I use alias with those -I<dir> and -M<mdl>
This User Gave Thanks to alex_5161 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
First I will tell my objective of this function (function one).
I have a table for ex:
id passwd name
-- ------ -----
1 fdhgfs werwer
2 fsdfs sdfsdf
3 sdfs sdfsdf
4 fdsfs dssdf
. . .
.
.
.
The id, passwd and name are the arguments for another function say two. (1 Reply)
Discussion started by: mercuryshipzz
1 Replies
2. Shell Programming and Scripting
Hello, maybe this post is offtopic, sorry for the inconveniencies (maybe should be in the forum with questions about C, C++, Java, SQL...).
I found examples about how to populate different fields from a text file (with MySQL, the LOAD DATA INFILE sentece), but not about how to load a complete... (2 Replies)
Discussion started by: aristegui
2 Replies
3. Shell Programming and Scripting
hi there
I have the following script in which i have created a PrintHash() function.
I want to pass to this function the reference to a hash (in the final code i will be passing different hashes to this print function hence the need for a function). I am getting an error
Type of arg 1 to... (1 Reply)
Discussion started by: hcclnoodles
1 Replies
4. UNIX Desktop Questions & Answers
I write this code.
It show the first dialog correctly.
but, no matter i modify the code(load module by use or require, or something i think maybe error)
it can't pop-up anymore.
and show this warning.
Thanks.
(I'm sorry for my English.)
Tue Mar 16 17:24:36 2010
... (0 Replies)
Discussion started by: snyh
0 Replies
5. Shell Programming and Scripting
Hello,
I need to write a perl script to find where functions is called in c files..
The script should scan the file and find out the function names and then search to see where they are called...
Lets for now assume all functions are internal.
I don't know where to start :(
... (4 Replies)
Discussion started by: bojomojo
4 Replies
6. Shell Programming and Scripting
Hi to everybody.
I have a script in AWK with a revursive function, when I make the recursive call I'm loosing values in the local variables. So I'm trying to do the script in Perl, but I don't know Perl.
I want to load several hashes with the data in a pipe separated file. In AWK it looks... (0 Replies)
Discussion started by: kcoder24
0 Replies
7. Shell Programming and Scripting
Hello all,
I know this is Unix forum, but i also know that there are some experts here who can help me out with this situation;
I am loading a data file into oracle table using Perl script by calling sqlldr script.
It does not do anything, and no data is getting loaded.
Any help,... (2 Replies)
Discussion started by: msrahman
2 Replies
8. Shell Programming and Scripting
I have written a perl scripts which loads the data.
Now i want to modify the script, to Archive the Input file after the successful load of data.
Can anyone please share it and help me ....
Thanks. (2 Replies)
Discussion started by: msrahman
2 Replies
9. Shell Programming and Scripting
I am somewhat new to Perl. I have Googled Perl one liners and worked with the MIME::Lite library to send emails with attachments. But I have not done any real Perl scripting. I need to write a script to install code for our application using an Oracle database with DBI, and to track in the... (4 Replies)
Discussion started by: gandolf989
4 Replies
10. Programming
My issue is that the perl script (as I have done it so far) created empty branches when I try to check some branches on existence.
I am using multydimentional hashes: found it as the best way for information that I need to handle. Saing multidimentional I means hash of hashes ... So, I have
... (2 Replies)
Discussion started by: alex_5161
2 Replies
LEARN ABOUT CENTOS
ppi::statement::include::perl6
PPI::Statement::Include::Perl6(3) User Contributed Perl Documentation PPI::Statement::Include::Perl6(3)
NAME
PPI::Statement::Include::Perl6 - Inline Perl 6 file section
SYNOPSIS
use v6-alpha;
grammar My::Grammar {
...
}
INHERITANCE
PPI::Statement::Include::Perl6
isa PPI::Statement::Include
isa PPI::Statement
isa PPI::Node
isa PPI::Element
DESCRIPTION
A "PPI::Statement::Include::Perl6" is a special include statement that indicates the start of a section of Perl 6 code inlined into a
regular Perl 5 code file.
The primary purpose of the class is to allow PPI to provide at least basic support for "6 in 5" modules like v6.pm;
Currently, PPI only supports starting a Perl 6 block. It does not currently support changing back to Perl 5 again. Additionally all POD and
__DATA__ blocks and __END__ blocks will be included in the Perl 6 string and will not be parsed by PPI.
perl6
The "perl6" method returns the block of Perl 6 code that is attached to the "use v6...;" command.
TO DO
- Write specific unit tests for this package
SUPPORT
See the support section in the main module.
AUTHOR
Adam Kennedy <adamk@cpan.org>
COPYRIGHT
Copyright 2001 - 2011 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.3 2011-02-26 PPI::Statement::Include::Perl6(3)