Help for this page

Select Code to Download


  1. or download this
    my ( $c, $d );
    1 ? $c : $d = 'Hi';
    
  2. or download this
    my ( $c, $d );
    $c = 'Hi';
    
  3. or download this
    my $d;
    1 ? my $c : $d = 'Hi';
    
  4. or download this
    my $d;
    my $c = 'Hi';
    
  5. or download this
    $ perl -MO=Deparse -e 'my $c; 1 ? $c : my $d; $d'
    my $c;
    $c;
    $d;
    -e syntax OK
    
  6. or download this
    $ perl -e '1 ? my $c : my $d'
    Invalid separator character '$' in attribute list at -e line 1, near "
    +$c : my "
    Execution of -e aborted due to compilation errors.
    
  7. or download this
    our $d = 'Out';
    {
    ...
        $d = 'In';
    }
    say $d;
    
  8. or download this
    our $d = 'Out';
    {
    ...
        $d = 'In';
    }
    say $d;