Help for this page

Select Code to Download


  1. or download this
    while ( my $value = some_sub() ) {
        # do something
        my $other_value = some_sub();
    }
    
  2. or download this
    sub some_sub {
        my @caller = caller();
        # now I know where I was called
    }
    
  3. or download this
    for ( 1 .. 10 ) {
        my ( $foo, $bar ) = ( some_sub(), some_sub() );
        # do stuff
    }