What is the best way to achieve sscanf
-like functionality in Perl?
I am looking at the sscanf
module.
Which is better:
sscanf
way?The Perl documentation includes this tidbit:
scanf
scanf() is C-specific, use <> and regular expressions instead, see perlre.
I would say that learning regexes is well worth it; they are part of the core strength of Perl and are a useful tool elsewhere too.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With