in reply to my within brackets

Bod, for future reference, note that B::Deparse is a handy way to see how the Perl parser interprets your code. Running:

> cat bod-oh-my.pl (my $pname,my $sname)=split / +/,$rname,2; > perl -MO=Deparse bod-oh-my.pl my($pname, $sname) = split(/ +/, $rname, 2); bod-oh-my.pl syntax OK
verifies that your razor-sharp Perl intuitions were spot on today.

Update: In case you're interested, -MO=Deparse feels like an old friend to me, after using it time after time while testing and verifying Acme::EyeDrops and when playing golf. :)

Replies are listed 'Best First'.
Re^2: my within brackets
by Bod (Parson) on Oct 18, 2021 at 20:56 UTC

    Thanks eyepopslikeamosquito - B::Deparse is something I have heard seen mentioned a few times in the Monastery. But, until now I haven't really thought it might help me. I shall add it to the (growing) list of things that I need to look into...