Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Extracting selected fields form file record

by soonix (Canon)
on Feb 06, 2022 at 19:53 UTC ( #11141175=note: print w/replies, xml ) Need Help??


in reply to Re^2: Extracting selected fields form file record
in thread Extracting selected fields form file record

A single space character (' ') is a special case. I admit that it is a bit buried in the split documentation. Of course, only at most OP knows whether leading whitespace should be kept…
  • Comment on Re^3: Extracting selected fields form file record

Replies are listed 'Best First'.
Re^4: Extracting selected fields form file record
by LanX (Sage) on Feb 06, 2022 at 20:14 UTC
    you are right and it will also handle leading whitespace! :)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2022-11-26 08:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?