Perl On Take Last modified file in ...

by bruce, August 10, 2010 09:02

hi what compilator do you u...

Avatar Talk

Perl On Random sentence generator

by blaine, March 18, 2010 04:50

Maryland auto insurance age...

49bb95a2ecf58822c675597e329ce23b Talk
1
2
3
4
use strict;
use warnings;
use 5.010;
...

Perl On Restructuring Perl Sitemap ...

by draegtun, March 15, 2010 10:34

Have a look at the Perl5 wi...

29cb106071d163d703484e63839d89cb Talk
1
C:\Documents and Settings\Santa\Mis documentos\Smtp>perl scan.pl

Perl On Smtp Scanner

by Wood, March 09, 2010 00:55

good

0f0cd7056796fb836103386926b943a0 Talk
1
Arcane

Perl On Random sentence generator

by longhornsbaseball, February 23, 2010 02:51
Avatar Talk
1
2
3
4
sub parse_decimal {
    my $input = shift;
    my $output = parse_grouping($input, ",", "."); # parse as 12,345,678.90
...

Perl On Handling both dots and comm...

by Neil Ostrove, January 25, 2010 16:35

Natuarally I messed up the ...

Avatar Talk
1
2
3
4
use strict;
use warnings;
use Test::More;
...

Perl On Handling both dots and comm...

by Neil Ostrove, January 25, 2010 16:28

This gets rid the duplicate...

D1696edfcccb0f0a47b45e3e33670e8e Talk
1
2
3
4
my $end = do {
    my $month_ago = DateTime->now->subtract( months => 1 );
    sprintf '%02d%02d', substr( $month_ago->year, -2 ), $month_ago->month;
...

Perl On Processing files by date.

by draegtun, January 12, 2010 14:55

No probs trirnoth. It wa...

29cb106071d163d703484e63839d89cb Talk
1
File.open('/usr/local/teste/xml-cvs/ssp.xml').readlines.join.to_s.scan(/\>(.*)\</).uniq.sort.each {|dados| puts "#{dados};#{ File.open('/usr/local/teste/xml-cvs/ssp.xml').readlines.join.to_s.scan(/\>(.*)\</).count(dados)}"}

Perl On Perl one-liner to extract x...

by Antonio Pires de Castro Júnior, December 29, 2009 17:58

Uma única linha em RUBY par...

C9dde8ac6e533576dd3ed5332beb2dc7 Talk

Perl On Processing files by date.

by trirnoth, December 04, 2009 16:41

I have no idea why I didn't...

B477db7638522c078d3f0b696b85aee5 Talk
1
@a{<>}.=print%a

Perl On deldup

by Anthony, November 17, 2009 21:55

Spews warnings, but works. ...

05b48b72766177b3b0a6ff4afdb70790 Talk
1
@a{<>}.=print keys%a

Perl On deldup

by Anthony, November 17, 2009 21:53

This gets down to a golf sc...

05b48b72766177b3b0a6ff4afdb70790 Talk

Perl On Hello world!

by Anthony, November 17, 2009 21:52

Sorry about that, posted on...

05b48b72766177b3b0a6ff4afdb70790 Talk
1
@a{<>}.=print keys%a

Perl On Hello world!

by Anthony, November 17, 2009 21:51

Golf score down to 20. I am...

05b48b72766177b3b0a6ff4afdb70790 Talk
1
perl -we '@a{<>} = 1; print keys %a'

Perl On deldup

by Anthony, November 17, 2009 21:34

Can go even shorter by usin...

05b48b72766177b3b0a6ff4afdb70790 Talk
1
2
3
4
sub parse_decimal {
    (my $input = shift) =~ s/[^\d,\.]//g;
    my %o = (','=>'.','.'=>',');
...

Perl On Handling both dots and comm...

by giftnuss, November 17, 2009 10:00

This is a useable implement...

16ce028e27993156566685b802365873 Talk

Perl On Handling both dots and comm...

by Thomas Salvador, November 16, 2009 20:20

hi.

here an idea on how to...

34db50b7ce2e115afadf5a765b950739 Talk
1
2
3
4
#!/usr/bin/perl

use strict;
...

Perl On Handling both dots and comm...

by johntrammell.myopenid.com, November 16, 2009 17:32

Definitely need to get rid ...

6e8ddfd51613a0bb512abb09b64dafef Talk
1
2
3
4
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
1
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...

Avatar Talk

Perl On Smtp Scanner

by Tak, October 20, 2009 22:49

on windows, open the perl p...

Avatar Talk
1
2
3
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
1
2
3
4
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
1
2
3
4
# 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