| Thread | Last Post | Replies |
|
| Design of the "code" classes | 01 Aug 2008 00:28 GMT | 2 |
I wrote up a summary and some notes and posted at <http://www.dlugosz.com/Perl6/web/code.html>. Can we come to a definitive statement of the Callable/Code/Block/Routine types, relative to the hints that are in the synopses thus far?
|
| Logging with Log::StdLog from within a package | 31 Jul 2008 19:36 GMT | 3 |
Today, I separated out a file of functions into a separate package: package MyPackage ; Instead of 'use', I 'require and call the functions using MyPackage::aFunction() ;
|
| what is the expression mean? | 31 Jul 2008 08:55 GMT | 11 |
I am reading the perl code of Blosxom, I can not quite catch the meaning of this expressiong: %month2num = (nil=>'00', Jan=>'01', Feb=>'02', Mar=>'03', Apr=>'04', May=>'05', Jun=>'06', Jul=>'07', Aug=>'08', Sep=>'09', Oct=>'10', Nov=>'11',
|
| Textfile to array or hash | 31 Jul 2008 07:44 GMT | 7 |
I want to extract data from a text file I recieve from the internet to an array or hash. So far I did not found a solution via google and co - maybe of my bad english and wrong search term. The file is put into a varaible :
|
| fix a per script | 30 Jul 2008 22:31 GMT | 2 |
I have this script that sort and erase duplicate. When I run the script I receive this message and I am not able to fix it. Use of uninitialized value in hash element at ./pgm1.pl line 21, <DATA> line 10.
|
| parse postfix stream | 30 Jul 2008 18:32 GMT | 1 |
I would like to use the postfix-command test unix - n n - 1 pipe flags=R user=test argv=/usr/bin/test.pl -d -n ${user} to send an e-mail to an file. Now i have to parse the mail with perl.
|
| Bug found in Open Perl IDE perl5db.pl module | 30 Jul 2008 18:16 GMT | 1 |
I'm using this IDE since months, and have to say this is a good IDE, light, simple, easy to use, but not bug-free ;-) I found a subtle bug in perl5db.pl module (that is shipped with the IDE for Windows available from SurceForge);
|
| How to find ioctl.ph - is my version of perl busted? | 30 Jul 2008 17:03 GMT | 2 |
According to perlpaq8, I should be able to "require sys/ioctl.ph" but when I run my script I get: Can't locate features.ph in @INC (did you run h2ph?)... I sure hope I don't have to run h2ph because I'd rather simply know if
|
| behavior of m// operator | 30 Jul 2008 16:09 GMT | 2 |
According to the documentation this program should print nothing since m// uses the last successful pattern match from m//, split, etc. However on my linux box it prints 1: #!/usr/bin/perl -w
|
| how to change the effective UID | 30 Jul 2008 16:06 GMT | 9 |
I can't change the EUID of a perl process which performs a perl script. I used the manual perlsec and wrote the script: #!/usr/bin/perl use English;
|
| Is there any module to get the cdrom infomation? | 30 Jul 2008 13:22 GMT | 6 |
I want to check whether a cdrom node under /dev actually exists.
|
| Can I upload Perl program in unicode? | 30 Jul 2008 07:37 GMT | 13 |
Imagine that I have the following statement in a Perl program. my $word = '??'; If I save the Perl program as 'UTF8' the characters remain. If I save it in ASCII, the line appears as my $word = '????‘?';
|
| Append newline to files | 30 Jul 2008 06:30 GMT | 3 |
I need to go through few hundred text files and append newline for files that don't end with newline. So I have the following code to read the file: local $/ = undef;
|
| Which NNTP module to use? | 30 Jul 2008 03:22 GMT | 2 |
Is there a defacto standard for NNTP perl modules? Some time ago I used News::NNTPClient, and I've just installed News::NNTP. Is there a preferred NNTP module I should be using? -Thanks
|
| Adding a quantifier to substitution | 29 Jul 2008 20:07 GMT | 3 |
I was wondering if there is a work around to add a quantifier if I need to replace a certain pattern with X multiples of certain character or string like: $str=~s/<pattern>/R{15}/g; -------> how to replace the pattern with
|