Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

can perl-data-dumper-concise replace data-dumper!?

by Perlbeginner1 (Scribe)
on Oct 04, 2012 at 19:08 UTC ( #997294=perlquestion: print w/replies, xml ) Need Help??
Perlbeginner1 has asked for the wisdom of the Perl Monks concerning the following question:

hello dear perler,

one question: i just install several modules
now i have to choice:
can perl data dumper roncise
replace data dumper!?


and if so - how to call it°!?

love to hear from you


greeetings
  • Comment on can perl-data-dumper-concise replace data-dumper!?

Replies are listed 'Best First'.
Re: can perl-data-dumper-concise replace data-dumper!?
by CountZero (Bishop) on Oct 04, 2012 at 19:26 UTC
    Data::Dumper::Concise is Data:Dumper in disguise with a few option set differently from the standard.

    From the docs:

    It exists, fundamentally, as a convenient way to reproduce a set of Dumper options that we've found ourselves using across large numbers of applications, primarily for debugging output.
    If you are looking for alternatives for Data:Dumper, have a look at Data:Dump. Personally I like its output more than Data:Dumper. but YMMV.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics
      hello dear buddy,

      thx qlot.
      running the script - i get such data back


      Maria Schmolln Maria Schmolln 2 5241 Maria Schmolln Telefonnummer: 07743/2209-12 FAX-Nummer: 07743/2209-17 E-Mail: pfarre.mariaschmolln@dioezese-linz.ats Mattighofen R�merstra�e 12 5230 Mattighofen Telefonnummer: 07742/2273 0676/87765221 FAX-Nummer: 07742/2273-22 E-Mail: propsteipfarre.mattighofen@dioezese-linz.atb Mauerkirchen Pfarrhofstra�e 4 5270 Mauerkirchen Telefonnummer: 07724/2262



      it does count up - that is great!!

      what i want is to force the script to run from 00000 to 10000 - the results should be stored in a csv formatted way...

      therfore i did the changes: changed the $max_page_num to the max number and change $page to the starting number. this will only print the data to stdout (console)

      now i am trying to modify it... :-) well i have to put it to the CSV-values. usually this can be done with use Text::CSV_XS (where the Class::CSV is based on) a friend also suggested me using Text::CSV which will load up Text::CSV_XS or, Well at the moment all the results will only print the data to stdout (console) im sure that i can modify it... :-) i just installed the Text::CSV_XS took it from here: http://search.cpan.org/~hmbrand/Text-CSV_XS-0.91/CSV_XS.pm
      now i try to figure out which attributes i do use

      what do you suggest!?

        Mmmm, difficult to answer as nobody has seen your script. For what it is worth, Text::CSV is the indeed the way I would write a CSV file.

        CountZero

        A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

        My blog: Imperial Deltronics

        what do you suggest!?

        Like, write some code, or like , hire a programmer, its like, the same advice from last year, like before, your plagiarised fake groveling *

        Your enthusiastic feigned interest is boring!

        "what do you suggest!?"

        I suggest that you spend less time spamming this forum (this is essentially reposted here: From text to csv with Text::CSV_XS), and learn to code.

Re: can perl-data-dumper-concise replace data-dumper!?
by Anonymous Monk on Oct 04, 2012 at 19:16 UTC

    can perl data dumper roncise replace data dumper!?

    Yes, obviously

    and if so - how to call it°!?

    Just exactly as shown in the documentation, same as D::D

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://997294]
Approved by marto
help
Chatterbox?
[Cosmic37]: now I have tried another blunder - can anyone explain why I am such a dunderhead?
[Cosmic37]: if ( $line =~ /$mydt/ ) { print $line; }
[Cosmic37]: I try to match successive date times stored in variable $mydt
[Cosmic37]: I guess it is searching for the string "$mydt"
[Corion]: Indeed cool, erix ;)
[Cosmic37]: rather than the value of $mydt which is a date time strong such as 2016-01-01 12:30:56
[Corion]: Cosmic37: No, but maybe $mydt doesn't contain what you think it does, or it contains characters that are special in a regular expression? Try if( $line =~ /\Q$mydt\E/) { ... for a literal match
[Cosmic37]: I mean string grrr
[Corion]: Maybe add an else branch in which you print what the values of $line and $mydt are?
[Cosmic37]: ah thank you I will try

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-06-29 17:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (673 votes). Check out past polls.