Help for this page

Select Code to Download


  1. or download this
    no strict qw(refs);
    my $variable = 'host_mail';
    my ${ $variable } = '80.80.80.80';
    
  2. or download this
    no strict qw(refs subs);
    my $variable = host_mail;
    my ${ $variable } = '80.80.80.80';
    
  3. or download this
    my ${ host_mail } = '80.80.80.80';
    
  4. or download this
    my $scandal_topic = 'email';
    say "We will call this scandal '${scandal_topic}gate'!";
    # says "We will call this scandal 'emailgate'!";
    
  5. or download this
    my $scandal_topic = 'email';
    say "We will call this scandal '$scandal_topicgate'!";
    # dies "Global symbol "$scandal_topicgate" requires explicit package n
    +ame