Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: regular expression function: grep, split, substr OR NO need?

by Corion (Patriarch)
on Sep 09, 2013 at 08:23 UTC ( [id://1052978]=note: print w/replies, xml ) Need Help??


in reply to regular expression function: grep, split, substr OR NO need?

You are misunderstanding things. grep, split and substr are not "regular expression functions". They can use regular expressions, and often are used together with them. But the regular expression binding operator =~ only applies a match. What you do with the result is where split and grep come in.

Replies are listed 'Best First'.
Re^2: regular expression function: grep, split, substr OR NO need?
by virtuemart2 (Novice) on Sep 09, 2013 at 08:54 UTC
    "But the regular expression binding operator =~ only applies a match. What you do with the result is where split and grep come in."
    Firstly, thx for quick reply!
    Well, yes, I misunderstanding the difference.
    If I would like to use functions grep, split, substr... etc
    I need to use "use module" ?
    use module use IO::File;
    thank you

      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!

        "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?
        further question
        if talking about module, it means OO object oriented?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1052978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-19 20:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found