- or download this
my $cnt = 0;
...
$cnt++;
...
print $cnt, "\n";
- or download this
print "$.\n";
- or download this
my $filename = '$mainDir\test.txt';
- or download this
my $filename = "$mainDir\test.txt";
- or download this
my $mth_end = sprintf "%04d,%02d,%02d",$y,$m,Days_in_Month($y,$m);
- or download this
printf OUT " Placement Release
+ Tot Chg\n";
printf OUT " Date Date
+ Days Days Cost\n";
- or download this
print OUT " Placement Release
+ Tot Chg\n";
print OUT " Date Date
+ Days Days Cost\n";
- or download this
my @dates = split '\s+', $_;
- or download this
my @dates = split;
- or download this
if ($free >= 0) {
my $amt = $free;
...
my $pfmt = "%-14s %-5s %-8s %-3s %-12s %-12s %-6s %-6s %-6s\n";
printf OUT $pfmt, $dates[0], $dates[1], $dates[2], $dates[3], fmt_
+mdy($dates[4]), fmt_mdy($dates[5]), $diff, $amt, fmt_curr($cost);
}
- or download this
my $amt = $free < 0 ? 0 : $free;
my $cost = $amt * 100;
my $pfmt = "%-14s %-5s %-8s %-3s %-12s %-12s %-6s %-6s %-6s\n";
printf OUT $pfmt, @dates[ 0, 1, 2, 3 ], fmt_mdy( $dates[ 4 ] ), fmt_
+mdy( $dates[ 5 ] ), $diff, $amt, fmt_curr( $cost );
- or download this
$ymd =~ s/ //g;
# return ' 'x10 if $ymd eq $NULL_DATE;
my ($y,$m,$d) = split /\D/,$ymd;
- or download this
my ( $y, $m, $d ) = split /\D+/, $ymd;
- or download this
my ( $y, $m, $d ) = $ymd =~ /\d+/g;
- or download this
while (<$file>) {
...
...
sub fmt_mdy {
...
}