Skip to main content
added 3 characters in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83

Perl + curl + feh, 86 8484 75 bytes

`curl -L http://xkcd.com/$_`=~$_/`=~/<img src="(.*)" title="(.*?)"/;$_=$2;`feh "http:$1"` 

Requires the -p switch. I have accounted for this in the byte count.

Perl + curl + feh, 86 84 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*)" title="(.*?)"/;$_=$2;`feh "http:$1"` 

Requires the -p switch. I have accounted for this in the byte count.

Perl + curl + feh, 86 84 75 bytes

`curl xkcd.com/$_/`=~/<img src="(.*)" title="(.*?)"/;$_=$2;`feh "http:$1"` 

Requires the -p switch. I have accounted for this in the byte count.

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

Perl + curl + feh, 8686 84 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*)" title="(.*?)"/;print$2;`feh;$_=$2;`feh "http:$1"` 

Requires the -np switch. Definitely golfableI have accounted for this in the byte count.

Perl + curl + feh, 86 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*)" title="(.*?)"/;print$2;`feh "http:$1"` 

Requires the -n switch. Definitely golfable.

Perl + curl + feh, 86 84 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*)" title="(.*?)"/;$_=$2;`feh "http:$1"` 

Requires the -p switch. I have accounted for this in the byte count.

deleted 1 character in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83

Perl + curl + feh, 8786 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*?)" title="(.*?)"/;print$2;`feh "http:$1"` 

Requires the -n switch. Definitely golfable.

Perl + curl + feh, 87 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*?)" title="(.*?)"/;print$2;`feh "http:$1"` 

Requires the -n switch. Definitely golfable.

Perl + curl + feh, 86 bytes

`curl -L http://xkcd.com/$_`=~/<img src="(.*)" title="(.*?)"/;print$2;`feh "http:$1"` 

Requires the -n switch. Definitely golfable.

deleted 1 character in body
Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83
Loading
Source Link
a spaghetto
  • 11.3k
  • 3
  • 48
  • 83
Loading