Help for this page

Select Code to Download


  1. or download this
    $line =~ s/^(\s*terminal\s=\s")[^"]+("\s*)$/$1$change$2/;
    
  2. or download this
          if ($line =~ m/^\s*names\s=\s{(\s*(.+),?)+\s*/) {
             @tags = split ",", $line;
    ...
            elsif ($_ =~ m/([^\s]+)/) {$_ = $1}
             } @tags;
          }
    
  3. or download this
        $line =~ /^\s*names\s*=\s*{\s*([^}]+)/;
        (my $names = $1) =~ y/" //d;
        my @tags = split /,/ => $names;
    
  4. or download this
    #!/usr/bin/env perl
    
    ...
    -- Define a tag table which hold all screen tags.
    tags = {
        names = { "Main", "WWW", "GIMP", "EMail", 6, 7 },
    
  5. or download this
    $ pm_regex_review.pl
    ================================================================
    ...
    tags = {
        names = { "Main", "WWW", "GIMP", "EMail", 6, 7 },
    ================================================================