Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Parsing bracket formatted file (third update)

by tybalt89 (Monsignor)
on Sep 24, 2022 at 09:43 UTC ( [id://11147103]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
        /\G([^{}\s]+)/gc ? [ @$e, $1 ] :
        return fixhash($e) while 1;
      }
    
  2. or download this
    [
      "sys",
    ...
        },
      },
    ]
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    my $parse = fixhash expr();
    pos($_) < length $_ and die "incomplete parse ", substr $_, pos($_);
    use Data::Dump 'dd'; dd $parse;
    
  4. or download this
    #!/usr/bin/perl
    
    ...
    pos($_) < length $_ and die "incomplete parse ", substr $_, pos($_);
    $Data::Dump::LINEWIDTH = 26;
    use Data::Dump 'dd'; dd $parse;
    
  5. or download this
    [
      "sys",
    ...
        },
      },
    ]
    
  6. or download this
    #!/usr/bin/perl
    
    ...
            }
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147103]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found