Help for this page

Select Code to Download


  1. or download this
    my($text) = "(network)(test)(ifcfg)";
    my($first, $second, $third) = 
    $text =~ /\((.*)\)\((.*)\)\((.*)\)/;
    print "$first and $second and $third\n";
    
  2. or download this
    my($text) = "(network)  (test)_(ifcfg)";
    my($first, $second, $third) = 
    $text =~ /\((.*)\)/;  #have this match all 3 and store them
    print "$first and $second and $third\n";