Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^3: using split

by girarde (Hermit)
on Jun 04, 2007 at 21:53 UTC ( #619241=note: print w/replies, xml ) Need Help??

in reply to Re^2: using split
in thread using split

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^4: using split
by imp (Priest) on Jun 05, 2007 at 00:30 UTC
    One of the most valuable things I learned from perlmonks is to always test my assumptions. Before posting a response to a question I always run the example code that I am providing and verify that it works the way I anticipate.

    The reply I provided above demonstrates that the perl parser sees the two statements as equivalent. Here is an example that proves the behaviour:

    > perl -le "print for @cols = split('|', 'ab|c');" a b | c
Re^4: using split
by FunkyMonk (Chancellor) on Jun 04, 2007 at 22:10 UTC
    I think you missed the point entirely:(
Re^4: using split
by naikonta (Curate) on Jun 05, 2007 at 02:30 UTC
    What would you have in mind if you knew from split that the first argument is /PATTERN/? :-)

    Open source softwares? Share and enjoy. Make profit from them if you can. Yet, share and enjoy!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2022-12-03 02:06 GMT
Find Nodes?
    Voting Booth?