Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    
    use strict;
    
    my $x;
    print +($x eq '') ? 'Yes' : 'No';
    
  2. or download this
    #!/usr/bin/perl -l
    
    use strict;
    
    my $x;
    print +(defined $x && $x eq '') ? 'Yes' : 'No';
    
  3. or download this
    if (
      (not defined $new and not defined $old)
      or 
      (defined $new and defined $old and $old eq $new)
    ) { ... }