- or download this
#!/usr/bin/perl
use strict;
...
@p = ();
}
print $_, "\n" foreach @a;
- or download this
$_ = 1 x shift;
while( /^(11+?)\1+$/ ) {
...
$_= 1 x ( length() / length $1 )
}
print length;
- or download this
#!/usr/bin/perl
use strict;
...
print $y, "\n";
redo;
}
- or download this
perl -le '$x=shift; for($y=2; $y<=$x; $y++) { next if $x%$y; $x/=$y; p
+rint $y; redo }' 7