Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    # foo.pl
    ...
    my $answer = <STDIN>;
    
    print "Ok, you said $answer";
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    while (<$foo>) {
        print ": $_";
    }
    
  3. or download this
    $ ./876596.pl
    : Hello world. Should I continue? (y/n)
    : Ok, you said y
    :