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

Re^2: newbie need help with a simple code

by perlmonk007 (Novice)
on Mar 05, 2013 at 04:33 UTC ( #1021743=note: print w/ replies, xml ) Need Help??


in reply to Re: newbie need help with a simple code
in thread newbie need help with a simple code

I tried this, I did not understand what the pipeline does though. also it is not giving the desired result, will try modifying it a little


Comment on Re^2: newbie need help with a simple code
Re^3: newbie need help with a simple code
by kielstirling (Scribe) on Mar 05, 2013 at 05:04 UTC
    It is a simple example of how you could use split to manage a line of text like you supplied. It will not work out of the box. You will in fact have to learn what the code does and customize it to your needs ... or even refactor it in a way that suits you better
      yes i am trying to play with it now. thanks for the help. will get back to you if i have any questions.
Re^3: newbie need help with a simple code
by AnomalousMonk (Abbot) on Mar 05, 2013 at 07:42 UTC
    ... I did not understand what the pipeline does ...

    The  | (pipe) character merely serves as a visual demarcation in the code example to allow the result of the operations to be better seen. Same thing as
        $selected = $1 . " | " . $2 . " | " . $3 . " | " . $4. " | " . $5;
    here.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2014-09-16 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (156 votes), past polls