It shouldn't feel right to you. That's a complete misuse of the substitution operator. You didn't need to alter $content, you went out of your way to make sure it didn't really change and then you've got this implicit loop and are calling push() many times instead of just once.
push @disp, $content =~ /id=(\d+)/ig;In reply to Re: Using s///e and it just doesn't feel right
by diotalevi
in thread Using s///e and it just doesn't feel right
by rkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |