Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowedseems to be allowed.


Perl, 25 bytes

sleep print$/.gmtime;do$0

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The result from print, always 1, is used as the parameter for sleep. do$0 is used to execute the script again, after the timer has finished.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 25 bytes

sleep print$/.gmtime;do$0

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The result from print, always 1, is used as the parameter for sleep. do$0 is used to execute the script again, after the timer has finished.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 25 bytes

sleep print$/.gmtime;do$0

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The result from print, always 1, is used as the parameter for sleep. do$0 is used to execute the script again, after the timer has finished.

deleted 14 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 3725 bytes

sleep print/(\S{8})/,$print$/while$_=gmtime.gmtime;do$0

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The time is extracted (the only stretch of 8 non-whitespace characters), and the result from print, always 1, is used as the parameter for sleep. do$0 is used to execute the script again, after the timer has finished.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 37 bytes

sleep print/(\S{8})/,$/while$_=gmtime

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The time is extracted (the only stretch of 8 non-whitespace characters), and the result from print, always 1, is used as the parameter for sleep.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 25 bytes

sleep print$/.gmtime;do$0

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The result from print, always 1, is used as the parameter for sleep. do$0 is used to execute the script again, after the timer has finished.

added 40 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 37 bytes

sleep print/(\S{8})/,$/while$_=gmtime

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The time is extracted (the only stretch of 8 non-whitespace characters), and the result from print, always 1, is used as the parameter for sleep.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime'. The date will be output along with the time, which seems to be allowed.


Perl, 37 bytes

sleep print/(\S{8})/,$/while$_=gmtime

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The time is extracted (the only stretch of 8 non-whitespace characters), and the result from print, always 1, is used as the parameter for sleep.

Perl, Command Line, 24 bytes

sleep(say)while$_=gmtime

This must be run from the command line, as perl -E'sleep(say)while$_=gmtime' (on windows, use double quotes instead). The date will be output along with the time, which seems to be allowed.


Perl, 37 bytes

sleep print/(\S{8})/,$/while$_=gmtime

In a scalar context, gmtime will return a string similar to Sat Nov 28 10:23:05 2015. The time is extracted (the only stretch of 8 non-whitespace characters), and the result from print, always 1, is used as the parameter for sleep.

added 228 characters in body
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading
Source Link
primo
  • 33.5k
  • 5
  • 61
  • 139
Loading