- or download this
#!/usr/bin/perl --
use strict; use warnings;
use Data::Dump;
...
"set zone id 100 \"Internet_Only\"",
{ 1 => "id 100 \"Internet_Only\"", 2 => undef },
]
- or download this
use Text::Balanced qw/ :ALL /;
my @parts = extract_multiple(
...
],
);
dd\@parts;
- or download this
["set zone ", "\"VLAN\"", " vrouter ", "\"trust-vr\""]
["set zone id 100 ", "\"Internet_Only\""]
- or download this
my @parts = split /("[^"]*")/, $line;
dd\@parts;
- or download this
my @parts = split /((?:\"(?:\\\"|(?!\").)*\"|\'(?:\\\'|(?!\').)*\'))/,
+ $line;
dd\@parts;