[prev in list] [next in list] [prev in thread] [next in thread] 

List:       perl-beginners
Subject:    Re: What is difference in this pattern?
From:       Andy Bach <afbach () gmail ! com>
Date:       2022-09-17 15:47:27
Message-ID: CACV6rWK50sxkqpGSoGVLXZTvUjecx-SKF7ZMKSUsK7iNqT1nVA () mail ! gmail ! com
[Download RAW message or body]

Nothing. Match substitution allow for almost any chars to be used as
delimiters, including "pairs" like
$foo =~ m(abc);
$foo =~ s{abc}{xyz};

On Sat, Sep 17, 2022 at 8:29 AM William Torrez Corea <willitc9888@gmail.com>
wrote:

> 1. $foo =~ m/abc/
> 2. $foo =~ m<abc>
> 3. $foo =~ m'abc'
>
> --
>
> With kindest regards, William.
>
> ⢀⣴  ⢶⣦ 
> ⣾    ⣿⡁ Debian - The universal operating system
> ⢿⡄      https://www.debian.org
>   ⣄    
>
-- 
Andy Bach
Afbach@gmail.com
Not at my desk

[Attachment #3 (text/html)]

<div dir="auto">Nothing. Match substitution allow for almost any chars to be used as \
delimiters, including "pairs" like</div><div dir="auto">$foo =~ m(abc);</div><div \
dir="auto">$foo =~ s{abc}{xyz};  </div><div><br><div class="gmail_quote"><div \
dir="ltr" class="gmail_attr">On Sat, Sep 17, 2022 at 8:29 AM William Torrez Corea \
&lt;<a href="mailto:willitc9888@gmail.com">willitc9888@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">1. $foo =~ m/abc/<br> 2. $foo =~ \
m&lt;abc&gt;<br> 3. $foo =~ m&#39;abc&#39;<br>
<br>
-- <br>
<br>
With kindest regards, William.<br>
<br>
⢀⣴  ⢶⣦ <br>
⣾    ⣿⡁ Debian - The universal operating system<br>
⢿⡄      <a href="https://www.debian.org" rel="noreferrer" \
target="_blank">https://www.debian.org</a><br>   ⣄    <br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature">Andy Bach<br><a \
href="mailto:Afbach@gmail.com">Afbach@gmail.com</a><br>Not at my desk</div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic