- or download this
#!/usr/bin/perl
use strict;
...
Cells with commas,"test 1a,1b","test, 2a 2b"
Cells with quotes,"test ""one""","""test"" two"
Quotes and commas,"test ""1a,1b""","""test 2a,""2b"
- or download this
sub handle_edi {
my ($bank_name, $bu, $amt);
...
}
close INFILE;
}
- or download this
my %sc = qw ( \\* b / em _ u );
my %counts;
...
for my $elem ( grep !/^</, @elems ) { $elem =~ s#$_#&track#eg for
+ keys %sc; }
join '',@elems;
}
- or download this
$YYYYMMDD = 19000100+sprintf"%02d"x3,(localtime)[5,4,3];
- or download this
find .|perl -lne'$t{19000100+sprintf"%02d"x3,(localtime((stat)[9]))[5,
+4,3]}+=-s if!-d}{print"$_ $t{$_}"for sort keys%t'
- or download this
#!/usr/bin/perl
while(1) {
...
else { last if !defined (($_ = <>) =~ s!\n|$/!!g); }
print "$_\n";
}
- or download this
$_="123
456
789
147,258,369,159,357";$p=X;sub d{/.{12}/s;print$&.$p;die$_ for@_}
n:d;$m=<>until$m=~/\d/&&s/$&/$p/g;/$p{3}/?d$p:!/\d/?d"Tie":$p=~y/XO/OX
+/;goto n