Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: My split command isnt working - please advise

by CountZero (Bishop)
on May 23, 2011 at 17:34 UTC ( #906327=note: print w/replies, xml ) Need Help??

in reply to My split command isnt working - please advise

What are you trying to accomplish with the my @sf = split; ?


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: My split command isnt working - please advise
by ambrus (Abbot) on May 23, 2011 at 19:13 UTC

    It could be for splitting off the first word from a web server access log, where lines could look like eg. - - [23/May/2011:19:02:56 +0000] "GET / HTTP/1.1" 200 9 +6 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; + +s)"
    Though in that case, splitting on a dot might not be a good idea, especially because the first field could also be an ipv6 address, such as 2001:738:2001:2010:0:ff:fe00:3.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2023-12-06 03:58 GMT
Find Nodes?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?

    Results (29 votes). Check out past polls.