Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Passing complex html-tag input over command line to HTML TreeBuilder method look_down() properlyby Anonymous Monk |
on Apr 18, 2019 at 01:33 UTC ( [id://1232739]=note: print w/replies, xml ) | Need Help?? |
You did not say how/what you had tried to pass the tags and what the program received (use Data::Dumper to print to show exactly). So ... Use Getopt::Long module to receive "tags" option arguments as a list of strings. Then process the attribute ("class" in your example) and its value yourself (use split( '=' , $attr_value_pair , 2 )).
In Section
Seekers of Perl Wisdom
|
|