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

Re: Use of Text::ParseWords

by Anonymous Monk
on Feb 08, 2010 at 04:35 UTC ( [id://821935] : note . print w/replies, xml ) Need Help??

in reply to Use of Text::ParseWords

quotewords is a function exported by Text::ParseWords (means you don't have to call it like Text::ParseWords::quotewords()))

Replies are listed 'Best First'.
Re^2: Use of Text::ParseWords
by blackgoat (Acolyte) on Feb 08, 2010 at 06:43 UTC


    I did not quite understand what you mean. I did mention I'm totally new to this. Could you care to be more explicit pls.

    Thank you very much

      Perl (and really all code languages) are made up of various 'sets' of functions. You can bring in one of these sets with the 'use Text::ParseWords;' line, which enables you to use one of the functions in that set: 'quotewords'. I.e. if you remove that 'use' line from your file, the quotewords line will give you an error.

      Code modularization and reuse are definitely important aspects of coding. I would say you should start to look into these topics in earnest once you have gotten comfortable writing a few 'basic hello world' examples from scratch on your own. In short: most advanced functionality you are looking for will be package in some module somewhere nowadays :). Hope that helps!