When I put use v5.8; at the top of my script, this means the script will not run unless it's being interpreted by Perl 5.8 or better. My question is, is there a way to force Perl to run in "compatibility mode" for a specific version? So that if I use a (fictitious) line like use only::v5.8;, my script will not run if it uses language features that weren't present in Perl 5.8.
My use case is that I would like to be able to develop scripts for my work machine (which has an older Perl release) using my personal laptop which has a more recent one.
perlbrewmakes that easy.