| 1 |
## name basic passes |
| 2 |
## failures 0 |
| 3 |
## cut |
| 4 |
|
| 5 |
m/foo/; |
| 6 |
m/foo foo foo foo foo foo foo foo foo foo foo foo/; |
| 7 |
m/foo |
| 8 |
foo/; |
| 9 |
|
| 10 |
m/foo # this is a foo |
| 11 |
bar # this is a bar |
| 12 |
baz # this is a baz |
| 13 |
more # more more more more more |
| 14 |
/x; |
| 15 |
|
| 16 |
m/ |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
/; |
| 23 |
|
| 24 |
#----------------------------------------------------------------------------- |
| 25 |
|
| 26 |
## name basic failures |
| 27 |
## failures 1 |
| 28 |
## cut |
| 29 |
|
| 30 |
m/ foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo/; |
| 31 |
|
| 32 |
## name basic failures, m//x |
| 33 |
## failures 1 |
| 34 |
## cut |
| 35 |
|
| 36 |
m/foo # this is a foo |
| 37 |
bar # this is a bar |
| 38 |
baz # this is a baz |
| 39 |
1234567890 1234567890 1234567890 1234567890 1234567890 1234567890 # this is too long |
| 40 |
/x; |
| 41 |
|
| 42 |
#----------------------------------------------------------------------------- |
| 43 |
|
| 44 |
## name config |
| 45 |
## failures 1 |
| 46 |
## parms {max_characters => 2} |
| 47 |
## cut |
| 48 |
|
| 49 |
m/ foo /; |
| 50 |
|
| 51 |
#----------------------------------------------------------------------------- |
| 52 |
|
| 53 |
## name failing regexp with syntax error |
| 54 |
## failures 0 |
| 55 |
## cut |
| 56 |
|
| 57 |
m/foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo(/x; |
| 58 |
|
| 59 |
#----------------------------------------------------------------------------- |
| 60 |
|
| 61 |
## name RT 36098 forgive long (and presumably descriptive) variable names |
| 62 |
## failures 0 |
| 63 |
## parms {max_characters => 20} |
| 64 |
## cut |
| 65 |
|
| 66 |
m/ $now_is_the_time_for_all_good_men_to_come_to /; |
| 67 |
m/ \\$now_is_the_time_for_all_good_men_to_come_to /; |
| 68 |
m/ $now::is::the::time::for::all::good::men::to::come::to /; |
| 69 |
m/ ${^_now_is_the_time_for_all_good_men_to_come_to} /; |
| 70 |
m/ ${now_is_the_time_for_all_good_men_to_come_to} /; |
| 71 |
m/ ${now::is::the::time::for::all::good::men::to::come::to} /; |
| 72 |
m/ @now_is_the_time_for_all_good_men_to_come_to /; |
| 73 |
m/ @{^_now_is_the_time_for_all_good_men_to_come_to} /; |
| 74 |
m/ @{now_is_the_time_for_all_good_men_to_come_to} /; |
| 75 |
m/ @{now::is::the::time::for::all::good::men::to::come::to} /; |
| 76 |
m/ $#now_is_the_time_for_all_good_men_to_come_to /; |
| 77 |
m/ $#{^_now_is_the_time_for_all_good_men_to_come_to} /; |
| 78 |
|
| 79 |
#----------------------------------------------------------------------------- |
| 80 |
|
| 81 |
## name RT 36098 things that look like interpolation but are not |
| 82 |
## failures 3 |
| 83 |
## parms {max_characters => 20} |
| 84 |
## cut |
| 85 |
|
| 86 |
m/ \$now_is_the_time_for_all_good_men_to_come_to /; |
| 87 |
m/ \\\$now_is_the_time_for_all_good_men_to_come_to /; |
| 88 |
m' $now_is_the_time_for_all_good_men_to_come_to '; |
| 89 |
|
| 90 |
#----------------------------------------------------------------------------- |
| 91 |
# Local Variables: |
| 92 |
# mode: cperl |
| 93 |
# cperl-indent-level: 4 |
| 94 |
# fill-column: 78 |
| 95 |
# indent-tabs-mode: nil |
| 96 |
# c-indentation-style: bsd |
| 97 |
# End: |
| 98 |
# ex: set ts=8 sts=4 sw=4 tw=78 ft=perl expandtab shiftround : |