Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How to read each line of file into an array and split contnts of each line into array cells

by Anonymous Monk
on Sep 30, 2013 at 12:13 UTC ( [id://1056340]=note: print w/replies, xml ) Need Help??


in reply to Re: How to read each line of file into an array and split contnts of each line into array cells
in thread How to read each line of file into an array and split contnts of each line into array cells

"...You do not really need to split the lines to find the time. Extract it with a regex and then print the line..."

And split doesn't use regex shea? of course I know it does uses

  • Comment on Re^2: How to read each line of file into an array and split contnts of each line into array cells

Replies are listed 'Best First'.
Re^3: How to read each line of file into an array and split contnts of each line into array cells
by hdb (Monsignor) on Sep 30, 2013 at 13:07 UTC

    In my response, there is no reference to Perl's split. Besides being a popular function in Perl, split is also an English verb. Most likely split got its name from split. Now, splitting strings into parts in Perl is often done using split but can be achieved in numerous other ways. All I wanted to say is, that the retrieval of the time is possible by applying a regular expression to the complete line from the log file without splitting it first.

Re^3: How to read each line of file into an array and split contnts of each line into array cells
by Anonymous Monk on Sep 30, 2013 at 12:52 UTC
    split might use regex. The statement is still correct: You don't need to use split.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-26 00:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found