Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    
    ...
    my $result = substr($string,index($string,$look_for),length($look_for)
    +);
    
    print $result;
    
  2. or download this
    $str =~ /(Version\s+\d+\.\d+)/;
    $result = $1;
    
  3. or download this
    grep> cd pub
    grep> more beer