| 1 | #!/usr/bin/env perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use feature 'state'; | ||
| 5 | |||
| 6 | use Sub::Genius (); | ||
| 7 | |||
| 8 | my $preplan = q{ | ||
| 9 | init | ||
| 10 | ( subA | ||
| 11 | & | ||
| 12 | ( | ||
| 13 | subB | ||
| 14 | _DO_LAZY_SEQ_ #<~ this subroutine encapsulates another PRE | ||
| 15 | subC | ||
| 16 | ) | ||
| 17 | & | ||
| 18 | subD | ||
| 19 | ) | ||
| 20 | fin | ||
| 21 | }; | ||
| 22 | |||
| 23 | ## intialize hash ref as container for global memory | ||
| 24 | my $GLOBAL = {}; | ||
| 25 | |||
| 26 | |||
| 27 | ## initialize Sub::Genius (caching 'on' by default) | ||
| 28 | my $sq = Sub::Genius->new(preplan => qq{$preplan} ); | ||
| 29 | $sq->init_plan; | ||
| 30 | my $final_scope = $sq->run_once( scope => {}, ns => q{main}, verbose => 1); | ||
| 31 | |||
| 32 | |||
| 33 | # | ||
| 34 | # S U B R O U T I N E S | ||
| 35 | # | ||
| 36 | |||
| 37 | #TODO - implement the logic! | ||
| 38 | sub init { | ||
| 39 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 40 | state $mystate = {}; # sticks around on subsequent calls | ||
| 41 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 42 | |||
| 43 | #-- begin subroutine implementation here --# | ||
| 44 | print qq{Sub init: ELOH! Replace me, I am just placeholder!\n}; | ||
| 45 | |||
| 46 | # return $scope, which will be passed to next subroutine | ||
| 47 | return $scope; | ||
| 48 | } | ||
| 49 | |||
| 50 | #TODO - implement the logic! | ||
| 51 | sub { | ||
| 52 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 53 | state $mystate = {}; # sticks around on subsequent calls | ||
| 54 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 55 | |||
| 56 | #-- begin subroutine implementation here --# | ||
| 57 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 58 | |||
| 59 | # return $scope, which will be passed to next subroutine | ||
| 60 | return $scope; | ||
| 61 | } | ||
| 62 | |||
| 63 | #TODO - implement the logic! | ||
| 64 | sub { | ||
| 65 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 66 | state $mystate = {}; # sticks around on subsequent calls | ||
| 67 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 68 | |||
| 69 | #-- begin subroutine implementation here --# | ||
| 70 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 71 | |||
| 72 | # return $scope, which will be passed to next subroutine | ||
| 73 | return $scope; | ||
| 74 | } | ||
| 75 | |||
| 76 | #TODO - implement the logic! | ||
| 77 | sub subA { | ||
| 78 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 79 | state $mystate = {}; # sticks around on subsequent calls | ||
| 80 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 81 | |||
| 82 | #-- begin subroutine implementation here --# | ||
| 83 | print qq{Sub subA: ELOH! Replace me, I am just placeholder!\n}; | ||
| 84 | |||
| 85 | # return $scope, which will be passed to next subroutine | ||
| 86 | return $scope; | ||
| 87 | } | ||
| 88 | |||
| 89 | #TODO - implement the logic! | ||
| 90 | sub { | ||
| 91 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 92 | state $mystate = {}; # sticks around on subsequent calls | ||
| 93 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 94 | |||
| 95 | #-- begin subroutine implementation here --# | ||
| 96 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 97 | |||
| 98 | # return $scope, which will be passed to next subroutine | ||
| 99 | return $scope; | ||
| 100 | } | ||
| 101 | |||
| 102 | #TODO - implement the logic! | ||
| 103 | sub { | ||
| 104 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 105 | state $mystate = {}; # sticks around on subsequent calls | ||
| 106 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 107 | |||
| 108 | #-- begin subroutine implementation here --# | ||
| 109 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 110 | |||
| 111 | # return $scope, which will be passed to next subroutine | ||
| 112 | return $scope; | ||
| 113 | } | ||
| 114 | |||
| 115 | #TODO - implement the logic! | ||
| 116 | sub { | ||
| 117 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 118 | state $mystate = {}; # sticks around on subsequent calls | ||
| 119 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 120 | |||
| 121 | #-- begin subroutine implementation here --# | ||
| 122 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 123 | |||
| 124 | # return $scope, which will be passed to next subroutine | ||
| 125 | return $scope; | ||
| 126 | } | ||
| 127 | |||
| 128 | #TODO - implement the logic! | ||
| 129 | sub { | ||
| 130 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 131 | state $mystate = {}; # sticks around on subsequent calls | ||
| 132 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 133 | |||
| 134 | #-- begin subroutine implementation here --# | ||
| 135 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 136 | |||
| 137 | # return $scope, which will be passed to next subroutine | ||
| 138 | return $scope; | ||
| 139 | } | ||
| 140 | |||
| 141 | #TODO - implement the logic! | ||
| 142 | sub { | ||
| 143 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 144 | state $mystate = {}; # sticks around on subsequent calls | ||
| 145 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 146 | |||
| 147 | #-- begin subroutine implementation here --# | ||
| 148 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 149 | |||
| 150 | # return $scope, which will be passed to next subroutine | ||
| 151 | return $scope; | ||
| 152 | } | ||
| 153 | |||
| 154 | #TODO - implement the logic! | ||
| 155 | sub { | ||
| 156 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 157 | state $mystate = {}; # sticks around on subsequent calls | ||
| 158 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 159 | |||
| 160 | #-- begin subroutine implementation here --# | ||
| 161 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 162 | |||
| 163 | # return $scope, which will be passed to next subroutine | ||
| 164 | return $scope; | ||
| 165 | } | ||
| 166 | |||
| 167 | #TODO - implement the logic! | ||
| 168 | sub { | ||
| 169 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 170 | state $mystate = {}; # sticks around on subsequent calls | ||
| 171 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 172 | |||
| 173 | #-- begin subroutine implementation here --# | ||
| 174 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 175 | |||
| 176 | # return $scope, which will be passed to next subroutine | ||
| 177 | return $scope; | ||
| 178 | } | ||
| 179 | |||
| 180 | #TODO - implement the logic! | ||
| 181 | sub { | ||
| 182 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 183 | state $mystate = {}; # sticks around on subsequent calls | ||
| 184 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 185 | |||
| 186 | #-- begin subroutine implementation here --# | ||
| 187 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 188 | |||
| 189 | # return $scope, which will be passed to next subroutine | ||
| 190 | return $scope; | ||
| 191 | } | ||
| 192 | |||
| 193 | #TODO - implement the logic! | ||
| 194 | sub { | ||
| 195 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 196 | state $mystate = {}; # sticks around on subsequent calls | ||
| 197 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 198 | |||
| 199 | #-- begin subroutine implementation here --# | ||
| 200 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 201 | |||
| 202 | # return $scope, which will be passed to next subroutine | ||
| 203 | return $scope; | ||
| 204 | } | ||
| 205 | |||
| 206 | #TODO - implement the logic! | ||
| 207 | sub { | ||
| 208 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 209 | state $mystate = {}; # sticks around on subsequent calls | ||
| 210 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 211 | |||
| 212 | #-- begin subroutine implementation here --# | ||
| 213 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 214 | |||
| 215 | # return $scope, which will be passed to next subroutine | ||
| 216 | return $scope; | ||
| 217 | } | ||
| 218 | |||
| 219 | #TODO - implement the logic! | ||
| 220 | sub { | ||
| 221 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 222 | state $mystate = {}; # sticks around on subsequent calls | ||
| 223 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 224 | |||
| 225 | #-- begin subroutine implementation here --# | ||
| 226 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 227 | |||
| 228 | # return $scope, which will be passed to next subroutine | ||
| 229 | return $scope; | ||
| 230 | } | ||
| 231 | |||
| 232 | #TODO - implement the logic! | ||
| 233 | sub { | ||
| 234 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 235 | state $mystate = {}; # sticks around on subsequent calls | ||
| 236 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 237 | |||
| 238 | #-- begin subroutine implementation here --# | ||
| 239 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 240 | |||
| 241 | # return $scope, which will be passed to next subroutine | ||
| 242 | return $scope; | ||
| 243 | } | ||
| 244 | |||
| 245 | #TODO - implement the logic! | ||
| 246 | sub { | ||
| 247 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 248 | state $mystate = {}; # sticks around on subsequent calls | ||
| 249 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 250 | |||
| 251 | #-- begin subroutine implementation here --# | ||
| 252 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 253 | |||
| 254 | # return $scope, which will be passed to next subroutine | ||
| 255 | return $scope; | ||
| 256 | } | ||
| 257 | |||
| 258 | #TODO - implement the logic! | ||
| 259 | sub { | ||
| 260 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 261 | state $mystate = {}; # sticks around on subsequent calls | ||
| 262 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 263 | |||
| 264 | #-- begin subroutine implementation here --# | ||
| 265 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 266 | |||
| 267 | # return $scope, which will be passed to next subroutine | ||
| 268 | return $scope; | ||
| 269 | } | ||
| 270 | |||
| 271 | #TODO - implement the logic! | ||
| 272 | sub { | ||
| 273 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 274 | state $mystate = {}; # sticks around on subsequent calls | ||
| 275 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 276 | |||
| 277 | #-- begin subroutine implementation here --# | ||
| 278 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 279 | |||
| 280 | # return $scope, which will be passed to next subroutine | ||
| 281 | return $scope; | ||
| 282 | } | ||
| 283 | |||
| 284 | #TODO - implement the logic! | ||
| 285 | sub { | ||
| 286 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 287 | state $mystate = {}; # sticks around on subsequent calls | ||
| 288 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 289 | |||
| 290 | #-- begin subroutine implementation here --# | ||
| 291 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 292 | |||
| 293 | # return $scope, which will be passed to next subroutine | ||
| 294 | return $scope; | ||
| 295 | } | ||
| 296 | |||
| 297 | #TODO - implement the logic! | ||
| 298 | sub { | ||
| 299 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 300 | state $mystate = {}; # sticks around on subsequent calls | ||
| 301 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 302 | |||
| 303 | #-- begin subroutine implementation here --# | ||
| 304 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 305 | |||
| 306 | # return $scope, which will be passed to next subroutine | ||
| 307 | return $scope; | ||
| 308 | } | ||
| 309 | |||
| 310 | #TODO - implement the logic! | ||
| 311 | sub { | ||
| 312 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 313 | state $mystate = {}; # sticks around on subsequent calls | ||
| 314 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 315 | |||
| 316 | #-- begin subroutine implementation here --# | ||
| 317 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 318 | |||
| 319 | # return $scope, which will be passed to next subroutine | ||
| 320 | return $scope; | ||
| 321 | } | ||
| 322 | |||
| 323 | #TODO - implement the logic! | ||
| 324 | sub subB { | ||
| 325 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 326 | state $mystate = {}; # sticks around on subsequent calls | ||
| 327 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 328 | |||
| 329 | #-- begin subroutine implementation here --# | ||
| 330 | print qq{Sub subB: ELOH! Replace me, I am just placeholder!\n}; | ||
| 331 | |||
| 332 | # return $scope, which will be passed to next subroutine | ||
| 333 | return $scope; | ||
| 334 | } | ||
| 335 | |||
| 336 | #TODO - implement the logic! | ||
| 337 | sub { | ||
| 338 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 339 | state $mystate = {}; # sticks around on subsequent calls | ||
| 340 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 341 | |||
| 342 | #-- begin subroutine implementation here --# | ||
| 343 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 344 | |||
| 345 | # return $scope, which will be passed to next subroutine | ||
| 346 | return $scope; | ||
| 347 | } | ||
| 348 | |||
| 349 | #TODO - implement the logic! | ||
| 350 | sub { | ||
| 351 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 352 | state $mystate = {}; # sticks around on subsequent calls | ||
| 353 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 354 | |||
| 355 | #-- begin subroutine implementation here --# | ||
| 356 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 357 | |||
| 358 | # return $scope, which will be passed to next subroutine | ||
| 359 | return $scope; | ||
| 360 | } | ||
| 361 | |||
| 362 | #TODO - implement the logic! | ||
| 363 | sub { | ||
| 364 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 365 | state $mystate = {}; # sticks around on subsequent calls | ||
| 366 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 367 | |||
| 368 | #-- begin subroutine implementation here --# | ||
| 369 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 370 | |||
| 371 | # return $scope, which will be passed to next subroutine | ||
| 372 | return $scope; | ||
| 373 | } | ||
| 374 | |||
| 375 | #TODO - implement the logic! | ||
| 376 | sub { | ||
| 377 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 378 | state $mystate = {}; # sticks around on subsequent calls | ||
| 379 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 380 | |||
| 381 | #-- begin subroutine implementation here --# | ||
| 382 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 383 | |||
| 384 | # return $scope, which will be passed to next subroutine | ||
| 385 | return $scope; | ||
| 386 | } | ||
| 387 | |||
| 388 | #TODO - implement the logic! | ||
| 389 | sub { | ||
| 390 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 391 | state $mystate = {}; # sticks around on subsequent calls | ||
| 392 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 393 | |||
| 394 | #-- begin subroutine implementation here --# | ||
| 395 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 396 | |||
| 397 | # return $scope, which will be passed to next subroutine | ||
| 398 | return $scope; | ||
| 399 | } | ||
| 400 | |||
| 401 | #TODO - implement the logic! | ||
| 402 | sub { | ||
| 403 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 404 | state $mystate = {}; # sticks around on subsequent calls | ||
| 405 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 406 | |||
| 407 | #-- begin subroutine implementation here --# | ||
| 408 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 409 | |||
| 410 | # return $scope, which will be passed to next subroutine | ||
| 411 | return $scope; | ||
| 412 | } | ||
| 413 | |||
| 414 | #TODO - implement the logic! | ||
| 415 | sub _DO_LAZY_SEQ_ { | ||
| 416 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 417 | state $mystate = {}; # sticks around on subsequent calls | ||
| 418 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 419 | |||
| 420 | #-- begin subroutine implementation here --# | ||
| 421 | print qq{Sub _DO_LAZY_SEQ_: ELOH! Replace me, I am just placeholder!\n}; | ||
| 422 | |||
| 423 | # return $scope, which will be passed to next subroutine | ||
| 424 | return $scope; | ||
| 425 | } | ||
| 426 | |||
| 427 | #TODO - implement the logic! | ||
| 428 | sub { | ||
| 429 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 430 | state $mystate = {}; # sticks around on subsequent calls | ||
| 431 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 432 | |||
| 433 | #-- begin subroutine implementation here --# | ||
| 434 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 435 | |||
| 436 | # return $scope, which will be passed to next subroutine | ||
| 437 | return $scope; | ||
| 438 | } | ||
| 439 | |||
| 440 | #TODO - implement the logic! | ||
| 441 | sub { | ||
| 442 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 443 | state $mystate = {}; # sticks around on subsequent calls | ||
| 444 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 445 | |||
| 446 | #-- begin subroutine implementation here --# | ||
| 447 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 448 | |||
| 449 | # return $scope, which will be passed to next subroutine | ||
| 450 | return $scope; | ||
| 451 | } | ||
| 452 | |||
| 453 | #TODO - implement the logic! | ||
| 454 | sub { | ||
| 455 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 456 | state $mystate = {}; # sticks around on subsequent calls | ||
| 457 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 458 | |||
| 459 | #-- begin subroutine implementation here --# | ||
| 460 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 461 | |||
| 462 | # return $scope, which will be passed to next subroutine | ||
| 463 | return $scope; | ||
| 464 | } | ||
| 465 | |||
| 466 | #TODO - implement the logic! | ||
| 467 | sub { | ||
| 468 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 469 | state $mystate = {}; # sticks around on subsequent calls | ||
| 470 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 471 | |||
| 472 | #-- begin subroutine implementation here --# | ||
| 473 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 474 | |||
| 475 | # return $scope, which will be passed to next subroutine | ||
| 476 | return $scope; | ||
| 477 | } | ||
| 478 | |||
| 479 | #TODO - implement the logic! | ||
| 480 | sub { | ||
| 481 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 482 | state $mystate = {}; # sticks around on subsequent calls | ||
| 483 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 484 | |||
| 485 | #-- begin subroutine implementation here --# | ||
| 486 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 487 | |||
| 488 | # return $scope, which will be passed to next subroutine | ||
| 489 | return $scope; | ||
| 490 | } | ||
| 491 | |||
| 492 | #TODO - implement the logic! | ||
| 493 | sub { | ||
| 494 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 495 | state $mystate = {}; # sticks around on subsequent calls | ||
| 496 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 497 | |||
| 498 | #-- begin subroutine implementation here --# | ||
| 499 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 500 | |||
| 501 | # return $scope, which will be passed to next subroutine | ||
| 502 | return $scope; | ||
| 503 | } | ||
| 504 | |||
| 505 | #TODO - implement the logic! | ||
| 506 | sub this { | ||
| 507 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 508 | state $mystate = {}; # sticks around on subsequent calls | ||
| 509 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 510 | |||
| 511 | #-- begin subroutine implementation here --# | ||
| 512 | print qq{Sub this: ELOH! Replace me, I am just placeholder!\n}; | ||
| 513 | |||
| 514 | # return $scope, which will be passed to next subroutine | ||
| 515 | return $scope; | ||
| 516 | } | ||
| 517 | |||
| 518 | #TODO - implement the logic! | ||
| 519 | sub subroutine { | ||
| 520 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 521 | state $mystate = {}; # sticks around on subsequent calls | ||
| 522 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 523 | |||
| 524 | #-- begin subroutine implementation here --# | ||
| 525 | print qq{Sub subroutine: ELOH! Replace me, I am just placeholder!\n}; | ||
| 526 | |||
| 527 | # return $scope, which will be passed to next subroutine | ||
| 528 | return $scope; | ||
| 529 | } | ||
| 530 | |||
| 531 | #TODO - implement the logic! | ||
| 532 | sub encapsulates { | ||
| 533 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 534 | state $mystate = {}; # sticks around on subsequent calls | ||
| 535 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 536 | |||
| 537 | #-- begin subroutine implementation here --# | ||
| 538 | print qq{Sub encapsulates: ELOH! Replace me, I am just placeholder!\n}; | ||
| 539 | |||
| 540 | # return $scope, which will be passed to next subroutine | ||
| 541 | return $scope; | ||
| 542 | } | ||
| 543 | |||
| 544 | #TODO - implement the logic! | ||
| 545 | sub another { | ||
| 546 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 547 | state $mystate = {}; # sticks around on subsequent calls | ||
| 548 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 549 | |||
| 550 | #-- begin subroutine implementation here --# | ||
| 551 | print qq{Sub another: ELOH! Replace me, I am just placeholder!\n}; | ||
| 552 | |||
| 553 | # return $scope, which will be passed to next subroutine | ||
| 554 | return $scope; | ||
| 555 | } | ||
| 556 | |||
| 557 | #TODO - implement the logic! | ||
| 558 | sub PRE { | ||
| 559 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 560 | state $mystate = {}; # sticks around on subsequent calls | ||
| 561 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 562 | |||
| 563 | #-- begin subroutine implementation here --# | ||
| 564 | print qq{Sub PRE: ELOH! Replace me, I am just placeholder!\n}; | ||
| 565 | |||
| 566 | # return $scope, which will be passed to next subroutine | ||
| 567 | return $scope; | ||
| 568 | } | ||
| 569 | |||
| 570 | #TODO - implement the logic! | ||
| 571 | sub { | ||
| 572 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 573 | state $mystate = {}; # sticks around on subsequent calls | ||
| 574 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 575 | |||
| 576 | #-- begin subroutine implementation here --# | ||
| 577 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 578 | |||
| 579 | # return $scope, which will be passed to next subroutine | ||
| 580 | return $scope; | ||
| 581 | } | ||
| 582 | |||
| 583 | #TODO - implement the logic! | ||
| 584 | sub { | ||
| 585 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 586 | state $mystate = {}; # sticks around on subsequent calls | ||
| 587 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 588 | |||
| 589 | #-- begin subroutine implementation here --# | ||
| 590 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 591 | |||
| 592 | # return $scope, which will be passed to next subroutine | ||
| 593 | return $scope; | ||
| 594 | } | ||
| 595 | |||
| 596 | #TODO - implement the logic! | ||
| 597 | sub { | ||
| 598 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 599 | state $mystate = {}; # sticks around on subsequent calls | ||
| 600 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 601 | |||
| 602 | #-- begin subroutine implementation here --# | ||
| 603 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 604 | |||
| 605 | # return $scope, which will be passed to next subroutine | ||
| 606 | return $scope; | ||
| 607 | } | ||
| 608 | |||
| 609 | #TODO - implement the logic! | ||
| 610 | sub { | ||
| 611 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 612 | state $mystate = {}; # sticks around on subsequent calls | ||
| 613 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 614 | |||
| 615 | #-- begin subroutine implementation here --# | ||
| 616 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 617 | |||
| 618 | # return $scope, which will be passed to next subroutine | ||
| 619 | return $scope; | ||
| 620 | } | ||
| 621 | |||
| 622 | #TODO - implement the logic! | ||
| 623 | sub { | ||
| 624 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 625 | state $mystate = {}; # sticks around on subsequent calls | ||
| 626 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 627 | |||
| 628 | #-- begin subroutine implementation here --# | ||
| 629 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 630 | |||
| 631 | # return $scope, which will be passed to next subroutine | ||
| 632 | return $scope; | ||
| 633 | } | ||
| 634 | |||
| 635 | #TODO - implement the logic! | ||
| 636 | sub { | ||
| 637 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 638 | state $mystate = {}; # sticks around on subsequent calls | ||
| 639 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 640 | |||
| 641 | #-- begin subroutine implementation here --# | ||
| 642 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 643 | |||
| 644 | # return $scope, which will be passed to next subroutine | ||
| 645 | return $scope; | ||
| 646 | } | ||
| 647 | |||
| 648 | #TODO - implement the logic! | ||
| 649 | sub subC { | ||
| 650 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 651 | state $mystate = {}; # sticks around on subsequent calls | ||
| 652 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 653 | |||
| 654 | #-- begin subroutine implementation here --# | ||
| 655 | print qq{Sub subC: ELOH! Replace me, I am just placeholder!\n}; | ||
| 656 | |||
| 657 | # return $scope, which will be passed to next subroutine | ||
| 658 | return $scope; | ||
| 659 | } | ||
| 660 | |||
| 661 | #TODO - implement the logic! | ||
| 662 | sub { | ||
| 663 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 664 | state $mystate = {}; # sticks around on subsequent calls | ||
| 665 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 666 | |||
| 667 | #-- begin subroutine implementation here --# | ||
| 668 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 669 | |||
| 670 | # return $scope, which will be passed to next subroutine | ||
| 671 | return $scope; | ||
| 672 | } | ||
| 673 | |||
| 674 | #TODO - implement the logic! | ||
| 675 | sub { | ||
| 676 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 677 | state $mystate = {}; # sticks around on subsequent calls | ||
| 678 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 679 | |||
| 680 | #-- begin subroutine implementation here --# | ||
| 681 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 682 | |||
| 683 | # return $scope, which will be passed to next subroutine | ||
| 684 | return $scope; | ||
| 685 | } | ||
| 686 | |||
| 687 | #TODO - implement the logic! | ||
| 688 | sub { | ||
| 689 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 690 | state $mystate = {}; # sticks around on subsequent calls | ||
| 691 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 692 | |||
| 693 | #-- begin subroutine implementation here --# | ||
| 694 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 695 | |||
| 696 | # return $scope, which will be passed to next subroutine | ||
| 697 | return $scope; | ||
| 698 | } | ||
| 699 | |||
| 700 | #TODO - implement the logic! | ||
| 701 | sub { | ||
| 702 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 703 | state $mystate = {}; # sticks around on subsequent calls | ||
| 704 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 705 | |||
| 706 | #-- begin subroutine implementation here --# | ||
| 707 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 708 | |||
| 709 | # return $scope, which will be passed to next subroutine | ||
| 710 | return $scope; | ||
| 711 | } | ||
| 712 | |||
| 713 | #TODO - implement the logic! | ||
| 714 | sub { | ||
| 715 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 716 | state $mystate = {}; # sticks around on subsequent calls | ||
| 717 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 718 | |||
| 719 | #-- begin subroutine implementation here --# | ||
| 720 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 721 | |||
| 722 | # return $scope, which will be passed to next subroutine | ||
| 723 | return $scope; | ||
| 724 | } | ||
| 725 | |||
| 726 | #TODO - implement the logic! | ||
| 727 | sub { | ||
| 728 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 729 | state $mystate = {}; # sticks around on subsequent calls | ||
| 730 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 731 | |||
| 732 | #-- begin subroutine implementation here --# | ||
| 733 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 734 | |||
| 735 | # return $scope, which will be passed to next subroutine | ||
| 736 | return $scope; | ||
| 737 | } | ||
| 738 | |||
| 739 | #TODO - implement the logic! | ||
| 740 | sub { | ||
| 741 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 742 | state $mystate = {}; # sticks around on subsequent calls | ||
| 743 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 744 | |||
| 745 | #-- begin subroutine implementation here --# | ||
| 746 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 747 | |||
| 748 | # return $scope, which will be passed to next subroutine | ||
| 749 | return $scope; | ||
| 750 | } | ||
| 751 | |||
| 752 | #TODO - implement the logic! | ||
| 753 | sub { | ||
| 754 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 755 | state $mystate = {}; # sticks around on subsequent calls | ||
| 756 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 757 | |||
| 758 | #-- begin subroutine implementation here --# | ||
| 759 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 760 | |||
| 761 | # return $scope, which will be passed to next subroutine | ||
| 762 | return $scope; | ||
| 763 | } | ||
| 764 | |||
| 765 | #TODO - implement the logic! | ||
| 766 | sub { | ||
| 767 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 768 | state $mystate = {}; # sticks around on subsequent calls | ||
| 769 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 770 | |||
| 771 | #-- begin subroutine implementation here --# | ||
| 772 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 773 | |||
| 774 | # return $scope, which will be passed to next subroutine | ||
| 775 | return $scope; | ||
| 776 | } | ||
| 777 | |||
| 778 | #TODO - implement the logic! | ||
| 779 | sub { | ||
| 780 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 781 | state $mystate = {}; # sticks around on subsequent calls | ||
| 782 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 783 | |||
| 784 | #-- begin subroutine implementation here --# | ||
| 785 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 786 | |||
| 787 | # return $scope, which will be passed to next subroutine | ||
| 788 | return $scope; | ||
| 789 | } | ||
| 790 | |||
| 791 | #TODO - implement the logic! | ||
| 792 | sub { | ||
| 793 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 794 | state $mystate = {}; # sticks around on subsequent calls | ||
| 795 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 796 | |||
| 797 | #-- begin subroutine implementation here --# | ||
| 798 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 799 | |||
| 800 | # return $scope, which will be passed to next subroutine | ||
| 801 | return $scope; | ||
| 802 | } | ||
| 803 | |||
| 804 | #TODO - implement the logic! | ||
| 805 | sub { | ||
| 806 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 807 | state $mystate = {}; # sticks around on subsequent calls | ||
| 808 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 809 | |||
| 810 | #-- begin subroutine implementation here --# | ||
| 811 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 812 | |||
| 813 | # return $scope, which will be passed to next subroutine | ||
| 814 | return $scope; | ||
| 815 | } | ||
| 816 | |||
| 817 | #TODO - implement the logic! | ||
| 818 | sub { | ||
| 819 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 820 | state $mystate = {}; # sticks around on subsequent calls | ||
| 821 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 822 | |||
| 823 | #-- begin subroutine implementation here --# | ||
| 824 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 825 | |||
| 826 | # return $scope, which will be passed to next subroutine | ||
| 827 | return $scope; | ||
| 828 | } | ||
| 829 | |||
| 830 | #TODO - implement the logic! | ||
| 831 | sub { | ||
| 832 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 833 | state $mystate = {}; # sticks around on subsequent calls | ||
| 834 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 835 | |||
| 836 | #-- begin subroutine implementation here --# | ||
| 837 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 838 | |||
| 839 | # return $scope, which will be passed to next subroutine | ||
| 840 | return $scope; | ||
| 841 | } | ||
| 842 | |||
| 843 | #TODO - implement the logic! | ||
| 844 | sub subD { | ||
| 845 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 846 | state $mystate = {}; # sticks around on subsequent calls | ||
| 847 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 848 | |||
| 849 | #-- begin subroutine implementation here --# | ||
| 850 | print qq{Sub subD: ELOH! Replace me, I am just placeholder!\n}; | ||
| 851 | |||
| 852 | # return $scope, which will be passed to next subroutine | ||
| 853 | return $scope; | ||
| 854 | } | ||
| 855 | |||
| 856 | #TODO - implement the logic! | ||
| 857 | sub { | ||
| 858 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 859 | state $mystate = {}; # sticks around on subsequent calls | ||
| 860 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 861 | |||
| 862 | #-- begin subroutine implementation here --# | ||
| 863 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 864 | |||
| 865 | # return $scope, which will be passed to next subroutine | ||
| 866 | return $scope; | ||
| 867 | } | ||
| 868 | |||
| 869 | #TODO - implement the logic! | ||
| 870 | sub { | ||
| 871 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 872 | state $mystate = {}; # sticks around on subsequent calls | ||
| 873 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 874 | |||
| 875 | #-- begin subroutine implementation here --# | ||
| 876 | print qq{Sub : ELOH! Replace me, I am just placeholder!\n}; | ||
| 877 | |||
| 878 | # return $scope, which will be passed to next subroutine | ||
| 879 | return $scope; | ||
| 880 | } | ||
| 881 | |||
| 882 | #TODO - implement the logic! | ||
| 883 | sub fin { | ||
| 884 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 885 | state $mystate = {}; # sticks around on subsequent calls | ||
| 886 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 887 | |||
| 888 | #-- begin subroutine implementation here --# | ||
| 889 | print qq{Sub fin: ELOH! Replace me, I am just placeholder!\n}; | ||
| 890 | |||
| 891 | # return $scope, which will be passed to next subroutine | ||
| 892 | return $scope; | ||
| 893 | } | ||
| 894 | |||
| 895 | #TODO - implement the logic! | ||
| 896 | sub subA { | ||
| 897 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 898 | state $mystate = {}; # sticks around on subsequent calls | ||
| 899 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 900 | |||
| 901 | #-- begin subroutine implementation here --# | ||
| 902 | print qq{Sub subA: ELOH! Replace me, I am just placeholder!\n}; | ||
| 903 | |||
| 904 | # return $scope, which will be passed to next subroutine | ||
| 905 | return $scope; | ||
| 906 | } | ||
| 907 | |||
| 908 | #TODO - implement the logic! | ||
| 909 | sub another { | ||
| 910 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 911 | state $mystate = {}; # sticks around on subsequent calls | ||
| 912 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 913 | |||
| 914 | #-- begin subroutine implementation here --# | ||
| 915 | print qq{Sub another: ELOH! Replace me, I am just placeholder!\n}; | ||
| 916 | |||
| 917 | # return $scope, which will be passed to next subroutine | ||
| 918 | return $scope; | ||
| 919 | } | ||
| 920 | |||
| 921 | #TODO - implement the logic! | ||
| 922 | sub init { | ||
| 923 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 924 | state $mystate = {}; # sticks around on subsequent calls | ||
| 925 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 926 | |||
| 927 | #-- begin subroutine implementation here --# | ||
| 928 | print qq{Sub init: ELOH! Replace me, I am just placeholder!\n}; | ||
| 929 | |||
| 930 | # return $scope, which will be passed to next subroutine | ||
| 931 | return $scope; | ||
| 932 | } | ||
| 933 | |||
| 934 | #TODO - implement the logic! | ||
| 935 | sub subC { | ||
| 936 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 937 | state $mystate = {}; # sticks around on subsequent calls | ||
| 938 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 939 | |||
| 940 | #-- begin subroutine implementation here --# | ||
| 941 | print qq{Sub subC: ELOH! Replace me, I am just placeholder!\n}; | ||
| 942 | |||
| 943 | # return $scope, which will be passed to next subroutine | ||
| 944 | return $scope; | ||
| 945 | } | ||
| 946 | |||
| 947 | #TODO - implement the logic! | ||
| 948 | sub encapsulates { | ||
| 949 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 950 | state $mystate = {}; # sticks around on subsequent calls | ||
| 951 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 952 | |||
| 953 | #-- begin subroutine implementation here --# | ||
| 954 | print qq{Sub encapsulates: ELOH! Replace me, I am just placeholder!\n}; | ||
| 955 | |||
| 956 | # return $scope, which will be passed to next subroutine | ||
| 957 | return $scope; | ||
| 958 | } | ||
| 959 | |||
| 960 | #TODO - implement the logic! | ||
| 961 | sub _DO_LAZY_SEQ_ { | ||
| 962 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 963 | state $mystate = {}; # sticks around on subsequent calls | ||
| 964 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 965 | |||
| 966 | #-- begin subroutine implementation here --# | ||
| 967 | print qq{Sub _DO_LAZY_SEQ_: ELOH! Replace me, I am just placeholder!\n}; | ||
| 968 | |||
| 969 | # return $scope, which will be passed to next subroutine | ||
| 970 | return $scope; | ||
| 971 | } | ||
| 972 | |||
| 973 | #TODO - implement the logic! | ||
| 974 | sub subB { | ||
| 975 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 976 | state $mystate = {}; # sticks around on subsequent calls | ||
| 977 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 978 | |||
| 979 | #-- begin subroutine implementation here --# | ||
| 980 | print qq{Sub subB: ELOH! Replace me, I am just placeholder!\n}; | ||
| 981 | |||
| 982 | # return $scope, which will be passed to next subroutine | ||
| 983 | return $scope; | ||
| 984 | } | ||
| 985 | |||
| 986 | #TODO - implement the logic! | ||
| 987 | sub subD { | ||
| 988 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 989 | state $mystate = {}; # sticks around on subsequent calls | ||
| 990 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 991 | |||
| 992 | #-- begin subroutine implementation here --# | ||
| 993 | print qq{Sub subD: ELOH! Replace me, I am just placeholder!\n}; | ||
| 994 | |||
| 995 | # return $scope, which will be passed to next subroutine | ||
| 996 | return $scope; | ||
| 997 | } | ||
| 998 | |||
| 999 | #TODO - implement the logic! | ||
| 1000 | sub this { | ||
| 1001 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 1002 | state $mystate = {}; # sticks around on subsequent calls | ||
| 1003 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 1004 | |||
| 1005 | #-- begin subroutine implementation here --# | ||
| 1006 | print qq{Sub this: ELOH! Replace me, I am just placeholder!\n}; | ||
| 1007 | |||
| 1008 | # return $scope, which will be passed to next subroutine | ||
| 1009 | return $scope; | ||
| 1010 | } | ||
| 1011 | |||
| 1012 | #TODO - implement the logic! | ||
| 1013 | sub fin { | ||
| 1014 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 1015 | state $mystate = {}; # sticks around on subsequent calls | ||
| 1016 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 1017 | |||
| 1018 | #-- begin subroutine implementation here --# | ||
| 1019 | print qq{Sub fin: ELOH! Replace me, I am just placeholder!\n}; | ||
| 1020 | |||
| 1021 | # return $scope, which will be passed to next subroutine | ||
| 1022 | return $scope; | ||
| 1023 | } | ||
| 1024 | |||
| 1025 | #TODO - implement the logic! | ||
| 1026 | sub subroutine { | ||
| 1027 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 1028 | state $mystate = {}; # sticks around on subsequent calls | ||
| 1029 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 1030 | |||
| 1031 | #-- begin subroutine implementation here --# | ||
| 1032 | print qq{Sub subroutine: ELOH! Replace me, I am just placeholder!\n}; | ||
| 1033 | |||
| 1034 | # return $scope, which will be passed to next subroutine | ||
| 1035 | return $scope; | ||
| 1036 | } | ||
| 1037 | |||
| 1038 | #TODO - implement the logic! | ||
| 1039 | sub PRE { | ||
| 1040 | my $scope = shift; # execution context passed by Sub::Genius::run_once | ||
| 1041 | state $mystate = {}; # sticks around on subsequent calls | ||
| 1042 | my $myprivs = {}; # reaped when execution is out of sub scope | ||
| 1043 | |||
| 1044 | #-- begin subroutine implementation here --# | ||
| 1045 | print qq{Sub PRE: ELOH! Replace me, I am just placeholder!\n}; | ||
| 1046 | |||
| 1047 | # return $scope, which will be passed to next subroutine | ||
| 1048 | return $scope; | ||
| 1049 | } | ||
| 1050 | |||
| 1051 | exit; | ||
| 1052 | __END__ |