Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Regular expression

by Anonymous Monk
on Oct 30, 2012 at 06:11 UTC ( #1001459=note: print w/ replies, xml ) Need Help??


in reply to Re: Regular expression
in thread Regular expression

For split i understood that the data is splitted based on "|" .For eg : abc |efg abc and efg are obtained.but didnt understood y $-,2 and grep are used along with that.Plz explain


Comment on Re^2: Regular expression
Re^3: Regular expression
by Anonymous Monk on Oct 30, 2012 at 06:59 UTC
    um, see split, first argument is regular expression, the other arguments are string to split, and the limit

    the grep is used to skip empty lines

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-05 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls