Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: using split

by imp (Priest)
on Jun 05, 2007 at 00:30 UTC ( #619265=note: print w/replies, xml ) Need Help??


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

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://619265]
help
Chatterbox?
[davido]: I have nvidia (1050ti) in one system at home. My work laptop came with a radeon/amd video system that is no longer supported by debian/ubuntu. So that being the case I'm in the "prefer nvidia even if proprietary" camp
[davido]: Especially since the laptop is only a couple years old.

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-05-26 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?