Just another Perl shrine | |
PerlMonks |
Re^4: loop iterator in a stringby LanX (Saint) |
on Sep 27, 2021 at 21:12 UTC ( [id://11137070]=note: print w/replies, xml ) | Need Help?? |
I think rejecting any $str containing anything which isn't a cipher, comma or dot prior to eval $str should be good enough
updatein order to avoid syntax error you need to check $@ to see if the eval was successful. NB line 82, not all errors are caught tho
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|