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

Re: My split command isnt working - please advise

by wfsp (Abbot)
on May 23, 2011 at 14:32 UTC ( #906307=note: print w/ replies, xml ) Need Help??


in reply to My split command isnt working - please advise

Given the data you've shown I'm sure not you need the first split (check for what split uses as a default).

#!/usr/bin/perl #use v5.12.2; use strict; use warnings; while(my $line = <DATA>){ chomp $line; my @nums = split(/\./, $line); print "@nums\n"; } __DATA__ 1.2.56.3 3.55.7.3


Comment on Re: My split command isnt working - please advise
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2015-07-02 09:51 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 (33 votes), past polls