use File::Path qw(remove_tree);

sub purge_archive{
...

Perl On Delete files from a directory

by Joe McMahon, November 16, 2009 02:11

As suggested by 'perldoc -f...

5d8037d6ab2ec9082a049771c588c558 Talk
perl -we '$a{$_}++ while <>; print for keys %a' file1 file2

Perl On deldup

by Bucciarati, October 28, 2009 20:06

Your code has about 45 usel...

A430da3c8cb7d45bb1f3e9035e93bce5 Talk

Perl On Smtp Scanner

by Tak, October 20, 2009 22:51

on windows, open the perl p...

D41d8cd98f00b204e9800998ecf8427e Talk

Perl On Smtp Scanner

by Tak, October 20, 2009 22:49

on windows, open the perl p...

D41d8cd98f00b204e9800998ecf8427e Talk
sub parse_decimal {
...

Perl On Handling both dots and comm...

by draegtun, October 09, 2009 21:13

And here are some other exa...

29cb106071d163d703484e63839d89cb Talk
use strict;
use warnings;
use Test::More;
...

Perl On Handling both dots and comm...

by draegtun, October 09, 2009 21:08

I'm not going to refactor y...

29cb106071d163d703484e63839d89cb Talk
# Case 1: {comma,period} followed by exactly 3 digits and no occurrence of 4+ digits in a row
# Case 2: {comma,period} followed by exactly N digits where N != 3
# Case 3: No commas or periods
...

Perl On Handling both dots and comm...

by Ben Marini, October 03, 2009 02:56

Seems like all of these tes...

D85d44a0eca045f40e5a31449277c26c Talk
#!/usr/bin/perl -wT

use strict;
...

Perl On Handling both dots and comm...

by Ruben Wisniewski, September 28, 2009 20:00

I hope I added my patterns ...

35cb5954a17f0e0c0a819bcaad5ea424 Talk
my $reformatted = join ':', substr($mac_address, 2) =~ /../g;

Perl On MAC Formatting

by Seanbo, September 03, 2009 23:25

Why bother with the additio...

3e54d4042d90094f2a6adba06865974e Talk
use MooseX::Declare;

class Keyboard with MooseX::Getopt {
...

Perl On A Dvorak keyboard layout cy...

by draegtun, August 13, 2009 13:09

If u're happy with it just ...

29cb106071d163d703484e63839d89cb Talk
#!/usr/bin/perl

use warnings;
...

Perl On A Dvorak keyboard layout cy...

by Wayne Rohret, August 08, 2009 17:36

your main problem is that t...

F35720eb9fb11a8c26f9ac9841011b82 Talk
C:\Documents and Settings\Santa\Mis documentos\Smtp>perl scan.pl
Can't locate Net/Telnet.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib
.) at scan.pl line 4.
...

Perl On Smtp Scanner

by Santa, May 14, 2009 17:22

i cant run this script :S c...

Bd27789c4d73bf18944c83497da93602 Talk

Perl On Random sentence generator

by gfhfgh, May 12, 2009 15:38

dfghdfgh

2dba37ac8b575469c0c6f91a223c6184 Talk
%zip = (
    '0812' => [  'ex090130.log' ],
    '0901' => [  'ex081205.log', 'ex081206.log', 'ex081207.log' ],
...

Perl On Processing files by date.

by draegtun, March 04, 2009 11:03

Cool it worked this time ;-...

29cb106071d163d703484e63839d89cb Talk
use strict;
use warnings;
use DateTime;
...

Perl On Processing files by date.

by draegtun, March 04, 2009 10:56

OK here goes again :-(

29cb106071d163d703484e63839d89cb Talk

Perl On Processing files by date.

by draegtun, March 02, 2009 11:50

Hmmm... I did post a refact...

29cb106071d163d703484e63839d89cb Talk
#!/usr/bin/perl -w
use strict;
...

Perl On Smtp Scanner

by tak11.myopenid.com, February 02, 2009 20:31

fixed up a little,

42306c1a1e87611519fdf1811ffe2c9c Talk
#!/usr/bin/perl
use strict;
use warnings;
...

Perl On Find the file with the high...

by bonzobo.blogspot.com, January 07, 2009 14:36

Refactored the code so tha...

43c4376065a1db662eea18f2437c832a Talk
use strict;
use warnings;

...

Perl On Find the file with the high...

by bob, January 07, 2009 09:17

untested

D41d8cd98f00b204e9800998ecf8427e Talk
#!/usr/bin/perl -w

use strict;
...

Perl On Apache log file sorting

by hourback, November 21, 2008 15:33

Modified the capitalization...

066739a7a44b7fb8be64e73f9f4323cb Talk

Perl On Take Last modified file in ...

by Test, November 05, 2008 15:40 Star_full

This site is stupid.

B642b4217b34b1e8d3bd915fc65c4452 Talk
#!/usr/bin/perl  
# Load the Net::FTP package 
use strict;
...

Perl On Create Backup and send to F...

by mrxinu, October 22, 2008 13:05 Star_fullStar_fullStar_fullStar_full

So, a few things:

1. Added...

B5603dc8f1e87c251bf9b1d28f31d38f Talk
#!perl
...

Perl On Delete files from a directory

by Marco Valtas, October 14, 2008 22:35 Star_fullStar_fullStar_fullStar_fullStar_full

Hi, usually I use File::Fin...

0706636fd5e30fa66019d7ffacdb5b11 Talk
my @octets = substr($mac_address, 2) =~ /../g;
$mac_address = join ':', @octets;

Perl On MAC Formatting

by Xavier Noria, October 07, 2008 12:39

Make octets apparent, and r...

7223c62b7310e164eb79c740188abbda Talk
$mac_address = join(':', ($mac_address =~ /(..)/g)[1 .. 6]);

Perl On MAC Formatting

by dionys.myopenid.com, September 11, 2008 09:23
55502f40dc8b7c769880b10874abc9d0 Talk