in reply to Re: String parsing
in thread String parsing
Your data lines are different enough that each type needs its own parser.Uhm, no, as shown in several other replies.
A hash of coderefs ("dispatch table") will do that nicely,Actually, your solution is very inflexible. It can't even deal with:
(only the exit value is different from the original). It'll produce an error, as Perl will try to use an undefined value as a code reference.WARNING(2): system is rebooting
Abigail
|
|---|