Help for this page

Select Code to Download


  1. or download this
    sub trim {
       $_ = $_[0];  # Assigns to $_, but $_ is aliased to " abc ".
    ...
    # }
    
    print trim($_) for " abc ", " def ", " ghi "
    
  2. or download this
    sub f {
       my $pos = tell(DATA);
    ...
    a
    b
    c