Help for this page

Select Code to Download


  1. or download this
    my @matches = ($line =~ /$regexp/);
    
  2. or download this
    my $regexp = "\d+: (\d+):(\d+):(\d+),\d+,\d+,(\d+)\.+$";
    my ($hr,$min,$sec,$match) = ($field =~ /$regexp/);
    if ($match == '987') {
        ... #do whatever you have to do with $hr,$min,$sec