unixbhaskar,
splatt9990,
@splatt9990@fosstodon.org avatar

@unixbhaskar a small caveat: if you're using an old version of Perl (pre-5.18) using these variables can cause a significant performance hit for your script.

https://metacpan.org/dist/perl/view/pod/perlvar.pod#Performance-issues

mjgardner,
@mjgardner@social.sdf.org avatar

@splatt9990 @unixbhaskar Any code that isn’t immediately discarded will be read more often than entered.

To prevent future readers, including yourself, from wanting to remove their tired eyeballs with a spoon, use https://perldoc.perl.org/English

use v5.18;
use English;

something with a regexp

say $MATCH; # not $&
say $PREMATCH; # not $`
say $POSTMATCH; # not $'

perldoc perlvar documents ’s predefined variables and “English” synonyms: https://perldoc.perl.org/perlvar#SPECIAL-VARIABLES

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • JUstTest
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • megavids
  • lostlight
  • All magazines