Help for this page

Select Code to Download


  1. or download this
    $ perl -wle ' q~hello~ =~ m/*ello/ and print "yeah";'
    Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HER
    +E ello/ at -e line 1.
    $ perl -wle ' q~hello~ =~ m/.*ello/ and print "yeah";'
    yeah