open my $fh, '>', 'output.txt' or die "cannot open output.txt: $!"; foreach my $attrib (@licenses) { my $name = $attrib->getAttribute('name'); my $count = $attrib->getAttribute('count'); print $fh "$name:$count\n"; }
In reply to Re: XML::LibXML save variable data to a file
by toolic
in thread XML::LibXML save variable data to a file
by pawelb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |