Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Basic but stupid problem i cannot wrap my head aroundby Corion (Patriarch) |
on Aug 06, 2020 at 09:06 UTC ( [id://11120411]=note: print w/replies, xml ) | Need Help?? |
In your first input string, there is an a, this gets matched and then assigned to $z (and printed). In your second input string, there is an empty string before the /, and no a. This gets matched and then assigned to $z (and printed). Maybe you don't want the stuff in front of the slash to be empty?
In Section
Seekers of Perl Wisdom
|
|