Help for this page

Select Code to Download


  1. or download this
    sub context {
        print
    ...
    void
    scalar
    a=[b],b=[]
    
  2. or download this
    from the perl 5.8 perlfunc scalar() section:
    
    ...
    evaluating all but the last element in void context
    and returning the final element evaluated in scalar
    context. This is seldom what you want.
    
  3. or download this
    $c = scalar(context('a'), context('b'));
    print "$c\n";
    void
    scalar
    b