in reply to Re^2: regular expression function: grep, split, substr OR NO need?
in thread regular expression function: grep, split, substr OR NO need?

In order to read and process a file, you do not need a module. As a starting point it is probably good, if you would read the documentation of split, grep and substr and find out under which circumstances they are useful. Do you have any particular application in mind? If not, search PerlMonks to find 1000s of examples for the usage of these functions!

  • Comment on Re^3: regular expression function: grep, split, substr OR NO need?
  • Download Code

Replies are listed 'Best First'.
Re^4: regular expression function: grep, split, substr OR NO need?
by virtuemart2 (Novice) on Sep 10, 2013 at 02:58 UTC
    "search PerlMonks to find 1000s of examples for the usage of these functions! "
    thank you for advise, sorry that I am so stupid...
    how can I get the examples? howto SEARCH I mean?

      On this page, top right, there is a link called Super Search which leads to the PerlMonk's Search Function.

      Alternatively, there is a useful website called Google that let's you specify the site to search. Just enter: grep site:perlmonks.org and you get some useful links. For example this one: map grep and sort.

Re^4: regular expression function: grep, split, substr OR NO need?
by virtuemart2 (Novice) on Sep 09, 2013 at 10:05 UTC
    further question
    if talking about module, it means OO object oriented?
      Instead of asking all the basic questions, you might try reading a book or Perl documentation.
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

      Some modules provide an OO interface (e.g., LWP::UserAgent). Others export functions for their caller to use (e.g. List::Util). Others do neither and instead affect the behavior of Perl (e.g. strict).

      use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name