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 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; ?

CountZero

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.

    95.108.157.251 - - [23/May/2011:19:02:56 +0000] "GET / HTTP/1.1" 200 9 +6 "-" "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bot +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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-08-16 09:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?