2 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
4 ## Permission is granted to use, copy, modify, and/or distribute
5 ## this work for any purpose with or without fee. This work is
6 ## offered as-is, with absolutely no warranty whatsoever. The
7 ## author is not responsible for any damages that result from
9 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
11 ## Permission is granted to use, copy, modify, and/or distribute
12 ## this work for any purpose with or without fee. This work is
13 ## offered as-is, with absolutely no warranty whatsoever. The
14 ## author is not responsible for any damages that result from
16 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
18 ## Permission is granted to use, copy, modify, and/or distribute
19 ## this work for any purpose with or without fee. This work is
20 ## offered as-is, with absolutely no warranty whatsoever. The
21 ## author is not responsible for any damages that result from
23 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
25 ## Permission is granted to use, copy, modify, and/or distribute
26 ## this work for any purpose with or without fee. This work is
27 ## offered as-is, with absolutely no warranty whatsoever. The
28 ## author is not responsible for any damages that result from
30 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
32 ## Permission is granted to use, copy, modify, and/or distribute
33 ## this work for any purpose with or without fee. This work is
34 ## offered as-is, with absolutely no warranty whatsoever. The
35 ## author is not responsible for any damages that result from
37 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
39 ## Permission is granted to use, copy, modify, and/or distribute
40 ## this work for any purpose with or without fee. This work is
41 ## offered as-is, with absolutely no warranty whatsoever. The
42 ## author is not responsible for any damages that result from
44 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
46 ## Permission is granted to use, copy, modify, and/or distribute
47 ## this work for any purpose with or without fee. This work is
48 ## offered as-is, with absolutely no warranty whatsoever. The
49 ## author is not responsible for any damages that result from
51 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
53 ## Permission is granted to use, copy, modify, and/or distribute
54 ## this work for any purpose with or without fee. This work is
55 ## offered as-is, with absolutely no warranty whatsoever. The
56 ## author is not responsible for any damages that result from
58 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
60 ## Permission is granted to use, copy, modify, and/or distribute
61 ## this work for any purpose with or without fee. This work is
62 ## offered as-is, with absolutely no warranty whatsoever. The
63 ## author is not responsible for any damages that result from
65 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
67 ## Permission is granted to use, copy, modify, and/or distribute
68 ## this work for any purpose with or without fee. This work is
69 ## offered as-is, with absolutely no warranty whatsoever. The
70 ## author is not responsible for any damages that result from
72 ## Copyright (C) 2023 by jrmu <jrmu@ircnow.org>
74 ## Permission is granted to use, copy, modify, and/or distribute
75 ## this work for any purpose with or without fee. This work is
76 ## offered as-is, with absolutely no warranty whatsoever. The
77 ## author is not responsible for any damages that result from
80 # Make a pattern that will match three consecutive copies of whatever is
81 # currently contained in $what. That is, if $what is fred, your pattern
82 # should match fredfredfred. If $what is fred|barney, your pattern should
83 # match fredfredbarney or barneyfredfred or barneybarneybarney or many other
84 # variations. (Hint: you should set $what at the top of the pattern test
85 # program with a statement like my $what = 'fred|barney';.)
91 my $what = "fred|barney";
96 print ("Match: $_\n");
98 print ("Not matched: $_\n");