summaryrefslogtreecommitdiff
path: root/perl/p4.pl
diff options
context:
space:
mode:
authorGuillermo Ramos2019-04-23 21:42:49 +0200
committerGuillermo Ramos2019-04-23 21:42:49 +0200
commit14f80772cd91555d4b3862e57460b832e88e5b22 (patch)
treee929e94c75acb805d581c46925b4f0c79b0c39bf /perl/p4.pl
parent84ea53edf5431d382844da8fcaa47626c8e2b6b2 (diff)
downloadeuler-14f80772cd91555d4b3862e57460b832e88e5b22.tar.gz
[perl] tabs -> spaces
Diffstat (limited to 'perl/p4.pl')
-rwxr-xr-xperl/p4.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/perl/p4.pl b/perl/p4.pl
index 9982fa5..3180cf7 100755
--- a/perl/p4.pl
+++ b/perl/p4.pl
@@ -10,9 +10,9 @@ use List::Util qw(max);
# Imperative
my $resp;
for my $x (100 .. 999) {
- for my $y ($x .. 999) {
- my $cand = $x*$y;
- $resp = max($resp, $cand) if $cand eq reverse($cand);
- }
+ for my $y ($x .. 999) {
+ my $cand = $x*$y;
+ $resp = max($resp, $cand) if $cand eq reverse($cand);
+ }
}
print "$resp\n";