Help for this page

Select Code to Download


  1. or download this
    $ perl -E '
        my $x = qq{ A B\tC # comment};
    ...
    s/[ #]//g:       |AB    Ccomment|
    s/[ #]//gx:      |AB    Ccomment|
    s/[ #]//gxx:     | A B  C  comment|
    
  2. or download this
    Unmatched [ in regex; marked by <-- HERE in m/[ <-- HERE  ]/ at -e lin
    +e 16.
    
  3. or download this
    my $re = qr{(?x:
        ... multiline regex pattern here ...
    )};