PERL Discussions - Main Page

Have a question or want to show off your project? Post it! No Registration Necessary.  Now with pictures!

PERL Discussions - PERL programming language
Web, RSS and Social Media interface to comp.lang.perl.misc
There are 139513 individual articles here that are part of 27901 discussions
Please see below the list of the most recent and the best rated articles in PERL Discussions

The most recent discussions

s suffix question

October 15, 2016, 2:28 am

Hi All, Google is failing me on this. I know what the suffix g does in s/abc/def/g it means global. Anyone know where I can get a list of the rest of the suffixes? Many thanks, -T Read more »

Can this really not be done in <perl-5.12

October 9, 2016, 6:23 am

Previously, I thought that I should start my perl scripts with BEGIN { require 5.012 } package ScriptName v42.6.8; our $VERSION; because this has two advantages within the script: 1. I have $VER... Read more »

installing modules with cpan

September 22, 2016, 2:22 pm

Hello I am using centos 7 and in the last couple of times that Ive used cpan to install modules they go into /root/perl5/lib/perl5 instead of going to /usr/lib64/perl5/vendor_perl/ is there a way t... Read more »

pod2usage and encoding by locale

September 16, 2016, 7:33 am

Pod2usage supports some special symbols like e.g. E for the Umlaut ä. Now perl outputs such symbols either in utf-8 or iso88591, depending on whether the first line in the pod text is =encoding ... Read more »

Missing CSS files in perl HTML documentation

September 14, 2016, 2:14 pm

I just moved my machine from Linux Mint 17 to 18 and have discovered that the supplied HTML documentation is missing some CSS files. Perl is at 5.22.1 and the perl-doc-html package is shown as 5.2... Read more »

Red Letter Day

September 13, 2016, 9:37 am

Hi All, Well, not today, but last week I had a tech support guy on a shared session fixing a program we had bought from his company. He saw a perl program I had written to give a nice table type... Read more »

How do I write this right to left?

September 12, 2016, 12:09 am

Hi All, I would like to know how to do this both ways: right to left: s/.*kis17/17/, s/.exe//, s/en_/./ for $NewRev = $RedirectUrl; left to right would be? ( $NewRev = $RedirectUrl ) =~ s/.*kis1... Read more »

I need Array of Hashes help

September 11, 2016, 3:17 am

Hi All, I am wringing myself a short program to demonstrate syntax for array of hashes. First, what is the difference between for and foreach? And, I am having trouble with my foreach loop. It o... Read more »

My example of how to exclude a pattern

September 10, 2016, 5:46 am

Hi All, You guys probably know this stuff like falling off a log, #!/usr/bin/perl use strict; use warnings; use diagnostics -verbose; my @Array = qw (abc def hij ); for my $Line ( @Array ) {... Read more »

How do I turn this into one line?

September 7, 2016, 2:05 am

$NewRev = $RedirectUrl; $NewRev =~ s/.*kis17/17/; $NewRev =~ s/.exe//; $NewRev =~ s/en_/./; Read more »

My get redirect url code

September 7, 2016, 1:26 am

Hi All, Thank yo all for helping me with this. Here is what I came up with. -T #!/usr/bin/perl use strict; use warnings; #use diagnostics; #use diagnostics -verbose; us... Read more »

parameter copy versus aliasing

September 6, 2016, 3:23 pm

Assuming I have a subroutine taking a 'large' string as argument I don't want to copy, this argument can either be accessed by @_-index, ie, $_[2], or a name can be bound to this scalar via local, ... Read more »

Re: Convert a SQL data fle to EXCEL data format

September 6, 2016, 2:47 pm

Happy Oyster writes: What's the difference supposed to be? Read more »

Edit and running question

September 6, 2016, 10:47 am

Hi All, I Perl 5, if a program is running and I edit something in its code at the same time, does it mess up the code's execution as does bash scripts? In other words, is the whole thing re... Read more »

url redirect: what am I doing wrong?

September 6, 2016, 1:41 am

Hi All, I am trying to useuse LWP::UserAgent to give me the redirect URL's. I amusing the following reference: Problem: ... Read more »

Is there a way to get this to pass the color?

September 4, 2016, 3:21 am

Hi All, A trivia question: This passes color (the b' is red) $ ls /bin --color | grep ^[ab] brltty-config This does not $ ls /bin --color | perl -lne '/^a|^b/ and print' brltty-config Is the... Read more »

How do I do this curl command in Perl?

August 30, 2016, 10:21 pm

$ curl -s -w % Or anyt... Read more »

Can I erase and reuse an array?

August 30, 2016, 12:44 am

Hi All, If I want to erase and reuse an array, is there a command for such? Many thanks, -T Read more »

loop and array indices question

August 29, 2016, 11:55 pm

Hi All, Other than I=0, I=+1, etc., when I do a foreach on an array, is there a way to tell which indice I am on? Many thanks, -T Read more »

I need help extracting text

August 29, 2016, 11:34 pm

Hi All, I am scratching me head trying to think of a way to extract from the following portion of a web page (I wish they put it all on the same line, but ...): Latest Version: ... Read more »

Click here for other recent discussions »

The best rated discussions


foreplay swinger magazine - Free

foreplay swinger magazine . . . *******CLICK HERE******** ***************************** . . . . . . . . . . . . foreplay swinger magazine Read more »


Re: using SSH without modules

What is wrong with modules? my $command = 'cat /root/file/log.txt'; or if wheel reinvention really is required for some odd reason: my $command = 'perl -pe1 /root/file/log.txt'; -- Tad M... Read more »


Using Excel without Macros

Hello! I have inherited the following code: use Win32::OLE::Const 'Microsoft Excel'; $Win32::OLE::Warn = 3; $Excel = Win32::OLE->new('Excel.Application', 'Quit'); # get a new excel $Book1 = $E... Read more »


How to draw a tree/graph of a web site?

Repair the corrupted file: perl -p -i -e 'tr/\r//d' bad_file -- Tad McClellan SGML consulting Perl programming Fort ... Read more »


File Rotation

Is there a way to rotate the log files each time the process runs using the existing functionality via the configuration? If the process has issues, the most recent log file logged the information. I... Read more »


Performance on Windows: Cygwin is much faster. Why?

Below is a small program to calculate some values using Lehmer's algorithm. Running it on Windows XP, I found some rather strange performance facts. Using ActiveState 5.10, it runs in 1117 seconds.... Read more »


Novadigm Radia *.edm files

Is there a way/module which allows it to read Radia .edm files? I want to edit single heaps in this files. An example file can be found here: This is a vi... Read more »


FAQ 7.19 What's the difference between deep and shallow binding?

This is an excerpt from the latest version perlfaq7.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community... Read more »


How to read a pdf file using active perl?

Hi, I am trying to read a PDF file using active Perl. I tried with PDF::API2 but no use. For example - I should get the text which is on the third line of first page... or Is there any way where I ca... Read more »


Rounding up in perl

  [ 2 3 ]

Is there more than one function for rounding a number up in perl? I tried the ceil() function but get an undefined subroutine message. Read more »


how to encrypt password stored in ftp script

Howdy - I want my script to make connection to FTP server and get some files. I need that script to run everyday automatically on machine that many people have access to - but I do not want them to k... Read more »


Asynchronous TCP Socket Connect

Howdy - Is there a way to do an asynchronous connection of a TCP socket, without threads or forking? Something like a two-step method, where I start the connect, then later check to see if it's do... Read more »


www homedepotopinion com

www homedepotopinion com it's pretty simply, really. You buy stuff at Home Depot, get a receipt that tells you to go to www homedepotopinion com and enter the survey for a chance to win $5000 (in a ... Read more »


zootube365 com - Free

Umm... you may be looking for something that's not here. The original post may has been removed for TOS violation. Read more »


look up very large table

I have some large data in pieces, e.g. asia.gz.tar 300M or roads1.gz.tar 100M roads2.gz.tar 100M roads3.gz.tar 100M roads4.gz.tar 100M I wonder whether I should concatenate them all into a single ult... Read more »


Help simplify complex regexp needing positive lookahead and reluctant quant...

My code is in Java, but my problem is a complicated regexp. Ironically, I think I'm more likely to get a better response in here than elsewhere. It's too bad there's no regular expressions newsgroup... Read more »


Why is "use 5.010" necessary

Why is it necessary to state: use 5.010; ... simply to have access to Perl 5.10's features? If I didn't want to use it's features I wouldn't have installed it in the first place. 5.10 is backward... Read more »


perl6 the ultimate source of frustation

I could go on with this for ever. look at this, the fuctionality, I always wanna have look at this page (really I did not know I need all this ) http://do... Read more »


Parameter guidelines for the Strong AI Singularity

=== Purpose === A parameter in the AI Mind software serves to guide or limit the operation of a mind-module. If a module is conducting a search of AI memory, one parameter may govern how much of memo... Read more »


Finding uninterpolated strings

I just spent most of two days debugging a problem which came down to this: my $output_file = /some/value/not/important; open STDERR '>>', '$output_file' or die .... etc Spot the mistake? Give... Read more »