| 1 | #This is a -*- perl -*- module file | ||||||||||
| 2 | # | ||||||||||
| 3 | # Copyright (c) 2007-2015 Salve J. Nilsen | ||||||||||
| 4 | # | ||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | package Acme::Godot; | ||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use version; our $VERSION = version->parse(0.1.10)->numify; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=3 SCAR=14.8
| |||||||||||
| 13 | eval { | ||||||||||
| 14 | 1 | ▶ | sub _waiting_for_godot { | ||||||||
|
Subroutine
_waiting_for_godot: called CC=1 SCAR=2.6
| |||||||||||
| 15 | 1 | sleep 60 * 60 * 24; # Act 1 - the first day | |||||||||
| 16 | 0 | sleep 60 * 60 * 24 * 365; # Intermission. Get your snacks! | |||||||||
| 17 | 0 | sleep 60 * 60 * 24; # Act 2 - the second day | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 1 | ▶ | sub _godot_has_arrived { | ||||||||
|
Subroutine
_godot_has_arrived: called CC=1 SCAR=0.0
| |||||||||||
| 21 | 1 | 0; # Nowhere to be seen. | |||||||||
| 22 | } | ||||||||||
| 23 | 1 | }; | |||||||||
| 24 | |||||||||||
| 25 | 1 | ▶ | PLAY: while (!_godot_has_arrived()) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 1 | _waiting_for_godot(); | |||||||||
| 27 | 0 | ▶ | redo PLAY unless _godot_has_arrived(); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | } continue { | ||||||||||
| 29 | 0 | exit; # Rejoice, Godot is here! Let's get outta here. | |||||||||
| 30 | } | ||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | 1; # End of Acme::Godot | ||||||||||
| 35 | __END__ | ||||||||||