05-28-2012
Please suggest the Sites for perl script beginners for better understanding
I am begginer to perl scripting, i like to learn all the functionality of the perl scrpting , Could you please help me on this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have to solve a programming problem for my wife who is engaged in Research in Breast Cancer.
1. She has frequently to search a long single line of alphabetic characters (lower case) for an exact match of a string.
e.g.... (4 Replies)
Discussion started by: nmsinghe
4 Replies
2. Shell Programming and Scripting
I currently have a perl script that have to retreive a single file from 20+ sites every 10 min. Right now it will ftp to site1 and download and continue up until site20. I am trying to get this to run all the ftp d/l at the same time. This is where I have my problem, I can't get it to work.
... (5 Replies)
Discussion started by: kofs79
5 Replies
3. UNIX for Dummies Questions & Answers
hi ppl
there is requirement of perl-cgi application in my project but i dont have knowledge about CGI i am good in perl so suggest some books ....
one book i found on net is "Writing CGI Applications with Perl" is this book good ?? (1 Reply)
Discussion started by: zedex
1 Replies
4. Shell Programming and Scripting
I solicited this site earlier this week and got a good answer for a perl
Script so I made this script from what understood from the answers
But now I have a bug and I'm stump. It doesn't parse correctly the
Output it stays on the first line My $f2 and reprints in a endless loop
I'm sure there... (3 Replies)
Discussion started by: Ex-Capsa
3 Replies
5. Shell Programming and Scripting
Well, I found myself trying to fix some Perl code (Ive never done any Perl in my life) and I pinpointed the place where the bug could be. But to be sure I have to know what does a few line of code mean:
$files_lim =~ (/^\d*$/)
$files_lim =~ (/^\d*h$/)
$files_age =~ s/h//
The code where... (2 Replies)
Discussion started by: RedSpyder
2 Replies
6. Programming
What is the difference between the two statements below?
A:
$a->{"$fruit"}->{"$color"}->{size} = $size
B:
$size = $a->{"$fruit"}->{"$color"}->{size}
Please assist. Thanks! (0 Replies)
Discussion started by: onlinelearner02
0 Replies
7. Ubuntu
recommend books to understand ubuntu ...... (14 Replies)
Discussion started by: vyom
14 Replies
8. OS X (Apple)
(Apologies for any typos.)
Well hands up those who have been in the following situation(s):-
Your partner, (in my case the missus), sees that you are messing
with your machine and says something like, "can you keep an eye
on the dinner, I am going out shopping", and you look up glazed
eyed... (3 Replies)
Discussion started by: wisecracker
3 Replies
9. Shell Programming and Scripting
Hello,
A former sys admin placed this script on one of our boxes and it needs to be adjusted, but I'm not familiar with perl. Can someone help break this down for me? I'm particularly interested in the -mtime function. What's the time frame being referenced here.
... (5 Replies)
Discussion started by: bbbngowc
5 Replies
10. UNIX for Beginners Questions & Answers
Hi,
I need some guidance with understanding this Perl script below. I am not the author of the script and the author has not leave any documentation. I supposed it is meant to be 'easy' if you're a Perl or regex guru. I am having problem understanding what regex to use :confused: The script does... (3 Replies)
Discussion started by: newbie_01
3 Replies
O(3pm) Perl Programmers Reference Guide O(3pm)
NAME
O - Generic interface to Perl Compiler backends
SYNOPSIS
perl -MO=[-q,]Backend[,OPTIONS] foo.pl
DESCRIPTION
This is the module that is used as a frontend to the Perl Compiler.
If you pass the "-q" option to the module, then the STDOUT filehandle will be redirected into the variable $O::BEGIN_output during
compilation. This has the effect that any output printed to STDOUT by BEGIN blocks or use'd modules will be stored in this variable rather
than printed. It's useful with those backends which produce output themselves ("Deparse", "Concise" etc), so that their output is not
confused with that generated by the code being compiled.
The "-qq" option behaves like "-q", except that it also closes STDERR after deparsing has finished. This suppresses the "Syntax OK" message
normally produced by perl.
CONVENTIONS
Most compiler backends use the following conventions: OPTIONS consists of a comma-separated list of words (no white-space). The "-v"
option usually puts the backend into verbose mode. The "-ofile" option generates output to file instead of stdout. The "-D" option
followed by various letters turns on various internal debugging flags. See the documentation for the desired backend (named "B::Backend"
for the example above) to find out about that backend.
IMPLEMENTATION
This section is only necessary for those who want to write a compiler backend module that can be used via this module.
The command-line mentioned in the SYNOPSIS section corresponds to the Perl code
use O ("Backend", OPTIONS);
The "O::import" function loads the appropriate "B::Backend" module and calls its "compile" function, passing it OPTIONS. That function is
expected to return a sub reference which we'll call CALLBACK. Next, the "compile-only" flag is switched on (equivalent to the command-line
option "-c") and a CHECK block is registered which calls CALLBACK. Thus the main Perl program mentioned on the command-line is read in,
parsed and compiled into internal syntax tree form. Since the "-c" flag is set, the program does not start running (excepting BEGIN blocks
of course) but the CALLBACK function registered by the compiler backend is called.
In summary, a compiler backend module should be called "B::Foo" for some foo and live in the appropriate directory for that name. It
should define a function called "compile". When the user types
perl -MO=Foo,OPTIONS foo.pl
that function is called and is passed those OPTIONS (split on commas). It should return a sub ref to the main compilation function. After
the user's program is loaded and parsed, that returned sub ref is invoked which can then go ahead and do the compilation, usually by making
use of the "B" module's functionality.
BUGS
The "-q" and "-qq" options don't work correctly if perl isn't compiled with PerlIO support : STDOUT will be closed instead of being
redirected to $O::BEGIN_output.
AUTHOR
Malcolm Beattie, "mbeattie@sable.ox.ac.uk"
perl v5.12.5 2012-09-11 O(3pm)