Help for this page

Select Code to Download


  1. or download this
        if (
               $key eq "\e"
    ...
        ) {
            print "Escape pressed\n";
        }
    
  2. or download this
    #!perl
    
    ...
            print "Escape pressed\n";
        }
    }
    
  3. or download this
    X:\>perl -MO=Deparse 11144112.pl
    use charnames (':full');
    ...
    Internet, point your browser at http://www.perl.org/, the Perl Home Pa
    +ge.
    
    X:\>
    
  4. or download this
     if ($key eq "\e" and $key eq v27 and ord $key == 27) {
            print "Escape pressed\n";
        }