Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1031082]
Front-paged by Corion
Eily never heard of the movie "LanX"
[Eily]: the LanX OS either now that I think of it :P
[hippo]: Congratulations, Discipulus!
[Discipulus]: Satura Lanx was a latin genre of show
[Discipulus]: coming from the meaning of 'mixed dish'
[Discipulus]: thanks hippo! the hat you passed me was brand new and clean, thanks
LanX OS builds on multitasking humor ...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2017-07-28 10:01 GMT
Find Nodes?
    Voting Booth?
    I came, I saw, I ...

    Results (426 votes). Check out past polls.