Help for this page

Select Code to Download


  1. 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 },
    ]
    
  2. or download this
        use Text::Balanced qw/ :ALL /;
        my @parts = extract_multiple(
    ...
            ],
        );
        dd\@parts;
    
  3. or download this
    ["set zone ", "\"VLAN\"", " vrouter ", "\"trust-vr\""]
    ["set zone id 100 ", "\"Internet_Only\""]
    
  4. or download this
        my @parts = split /("[^"]*")/, $line;
        dd\@parts;
    
  5. or download this
    my @parts = split /((?:\"(?:\\\"|(?!\").)*\"|\'(?:\\\'|(?!\').)*\'))/,
    + $line;
    dd\@parts;