Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $v = {R3R3_1_IF => 100};
    
    print "Hello world. $v->{R3R3_$pic\_IF}\n";
    
  2. or download this
    Backslash found where operator expected at mytest.pl line 9, near "$pi
    +c\"
        (Missing operator before \?)
    ...
    my $pic = 1;
    my $v = {'R3R3_1_IF', 100};
    print "Hello world. $$v{$pic->R3R3_(\'_IF')}\n";
    
  3. or download this
    use strict;
    use warnings;
    ...
    my $v = {R3R3_1_IF => 100};
    
    print "Hello world. $v->{R3R3_${pic}_IF}\n";
    
  4. or download this
    Bareword found where operator expected at mytest.pl line 9, near "${pi
    +c}_IF"
        (Missing operator before _IF?)
    ...
    my $pic = 1;
    my $v = {'R3R3_1_IF', 100};
    print "Hello world. $$v{$pic->R3R3_('_IF')}\n";