Skip to main content
Commonmark migration
Source Link

#Perl, 18 + 1 = 19 13 + 1 = 14 bytes#

Perl, 18 + 1 = 19 13 + 1 = 14 bytes

print while$_ 

Run like this:

echo -n NUM | perl -p truth.pl 

Thanks to ThisSuitIsBlackNot (who is way better at Perl golfing than me) for golfing off five bytes.

#Perl, 18 + 1 = 19 13 + 1 = 14 bytes#

print while$_ 

Run like this:

echo -n NUM | perl -p truth.pl 

Thanks to ThisSuitIsBlackNot (who is way better at Perl golfing than me) for golfing off five bytes.

Perl, 18 + 1 = 19 13 + 1 = 14 bytes

print while$_ 

Run like this:

echo -n NUM | perl -p truth.pl 

Thanks to ThisSuitIsBlackNot (who is way better at Perl golfing than me) for golfing off five bytes.

added 126 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83

#Perl, 1818 + 1 = 19 13 + 1 = 1914 bytes#

while($_+0){print} while$_ 

Run like this:

echo -n NUM | perl -p truth.pl <<< NUMBER 

Thanks to ThisSuitIsBlackNot (who is way better at Perl golfing than me) for golfing off five bytes.

#Perl, 18 + 1 = 19 bytes#

while($_+0){print} 

Run like this:

perl -p truth.pl <<< NUMBER 

#Perl, 18 + 1 = 19 13 + 1 = 14 bytes#

print while$_ 

Run like this:

echo -n NUM | perl -p truth.pl 

Thanks to ThisSuitIsBlackNot (who is way better at Perl golfing than me) for golfing off five bytes.

Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83

#Perl, 18 + 1 = 19 bytes#

while($_+0){print} 

Run like this:

perl -p truth.pl <<< NUMBER