http://qs1969.pair.com?node_id=11141175


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 (Saint) 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