Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • #!/usr/bin/perl -w
    use strict;

    use Data::Dumper;

    my $info = "dog";

      redo if (yes("play again?"));
    print "Bye!\n";
    print Dumper($info);

    sub try {
      my $this = $_[0];
      if (ref $this) {
        return try($this->{yes($this->{Question}) ? 'Yes' : 'No' });
      if (yes("Is it a $this")) {
        print "I got it!\n";
        return 1;
      print "no!?  What was it then? ";
      chomp(my $new = <STDIN>);

    • Randal L. Schwartz
    • Stonehenge