Skip to content
No results
  • Home
  • Categories
    • Afghanistan
    • Life & Culture
    • Travel
    • Reflections
    • Technology
  • About
  • RSS Feed
BlogEtcetera
BlogEtcetera

Thoughts on this, that and the rest

  • Home
  • Categories
    • Afghanistan
    • Life & Culture
    • Travel
    • Reflections
    • Technology
  • About
  • RSS Feed
BlogEtcetera
BlogEtcetera

Thoughts on this, that and the rest

text-processing

  • Technology

The Split() Trap: Why Perl Was Eating My Empty Fields

I was working on a data-matching project. One organisation sending data to match against another. Standard stuff: plain text, fields separated by a delimiter (tab, in this case). I reached for Perl’s split function to break each line into an…

Read MoreThe Split() Trap: Why Perl Was Eating My Empty Fields
  • Hameed
  • 24 November 2011
  • code-snippet, developer-tools, Perl, programming, scripting, text-processing

Recent posts

  • The Search for Markdown Viewer is Over
  • Stop Reading Afghanistan in Black and White
  • How to Conditionally Sum and Group Data with awk
  • That Friday Energy (and How to Get It Every Day)
  • The Math of Donating Blood

Tags

ai awk blogging career command-line desktop environments developer-tools development diaspora Doha Fedora foreign-policy health history i3wm ide Islam itinerary layover life linux linux-tips Linux distros literature llm mindfulness Perl Perl 5 personal-essay poetry politics productivity programming Programming Languages qatar ramadan scripting society technology Tech Reflections terminal travel tui unix xfce

Trending now

Afghanistan: The blame game
Ramadan: The transition is easy, the upkeep not so much
PCL – Centering Variable-width Text (Still Stuck with PCL? Read On.)
Afghanistan: No Way Ahead

Copyright © 2026 - BlogEtcetera | Privacy Policy