Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Change the data to have the format which is like a C struct.

by dwslovedh (Novice)
on Apr 28, 2013 at 14:53 UTC ( #1031082=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    _____________________________________________
    
    ...
        c = 4
        d = 5
    __________________________________________
    
  2. or download this
    _____________________________________________
    mm struct { 
    ...
      }
    }
    _________________________________________________
    
  3. or download this
    sub change_to_normal {
      my $str = shift;
    ...
      my $replace = '"$1 = \{"';       #add {
      $str =~ s/(.*)=\s*;/$replace/eeg;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1031082]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2014-07-24 02:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (156 votes), past polls