Skip to main content
Commonmark migration
Source Link

#Perl, 31 bytes

Perl, 31 bytes

-6 byte thanks to @Denis Ibaev

say$_ x$A++,$_..Z for A..Z

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x$A++,$_..Z for A..Z'  

#Perl, 31 bytes

-6 byte thanks to @Denis Ibaev

say$_ x$A++,$_..Z for A..Z

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x$A++,$_..Z for A..Z'  

Perl, 31 bytes

-6 byte thanks to @Denis Ibaev

say$_ x$A++,$_..Z for A..Z

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x$A++,$_..Z for A..Z'  
deleted 381 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 17
  • 43

#Perl, 31 bytes

-16 byte thanks to @Dom Hastings@Denis Ibaev

say$_ x(-65+ord)x$A++,$_..Z for A..Z  

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x(-65+ord)x$A++,$_..Z for A..Z'  

Pretty decent byte count I think.

Explanations :
Loops from characters A to Z, and each time prints a line consisting of :

  • -65+ord times the current character (which is basically the position of the current character in the alphabet : 0 for 'A', 1 for 'B', etc.)
  • every character from the current character to 'Z' (done with $_..Z)

#Perl, 31 bytes

-1 byte thanks to @Dom Hastings

say$_ x(-65+ord),$_..Z for A..Z  

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x(-65+ord),$_..Z for A..Z'  

Pretty decent byte count I think.

Explanations :
Loops from characters A to Z, and each time prints a line consisting of :

  • -65+ord times the current character (which is basically the position of the current character in the alphabet : 0 for 'A', 1 for 'B', etc.)
  • every character from the current character to 'Z' (done with $_..Z)

#Perl, 31 bytes

-6 byte thanks to @Denis Ibaev

say$_ x$A++,$_..Z for A..Z

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x$A++,$_..Z for A..Z'  
Added syntax highlighting
Source Link
Dom Hastings
  • 24.4k
  • 4
  • 56
  • 93

#Perl, 31 bytes

-1 byte thanks to @Dom Hastings

say$_ x(-65+ord),$_..Z for A..Z  
say$_ x(-65+ord),$_..Z for A..Z  

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x(-65+ord),$_..Z for A..Z'  

Pretty decent byte count I think.

Explanations :
Loops from characters A to Z, and each time prints a line consisting of :

  • -65+ord times the current character (which is basically the position of the current character in the alphabet : 0 for 'A', 1 for 'B', etc.)
  • every character from the current character to 'Z' (done with $_..Z)

#Perl, 31 bytes

-1 byte thanks to @Dom Hastings

say$_ x(-65+ord),$_..Z for A..Z  

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x(-65+ord),$_..Z for A..Z'  

Pretty decent byte count I think.

Explanations :
Loops from characters A to Z, and each time prints a line consisting of :

  • -65+ord times the current character (which is basically the position of the current character in the alphabet : 0 for 'A', 1 for 'B', etc.)
  • every character from the current character to 'Z' (done with $_..Z)

#Perl, 31 bytes

-1 byte thanks to @Dom Hastings

say$_ x(-65+ord),$_..Z for A..Z  

Needs -M5.010 to run. So run with :

perl -M5.010 -e 'say$_ x(-65+ord),$_..Z for A..Z'  

Pretty decent byte count I think.

Explanations :
Loops from characters A to Z, and each time prints a line consisting of :

  • -65+ord times the current character (which is basically the position of the current character in the alphabet : 0 for 'A', 1 for 'B', etc.)
  • every character from the current character to 'Z' (done with $_..Z)
added 39 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 17
  • 43
Loading
added 367 characters in body
Source Link
Dada
  • 8.5k
  • 1
  • 17
  • 43
Loading
Source Link
Dada
  • 8.5k
  • 1
  • 17
  • 43
Loading