Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Re: How to find empty in empty

by petral (Curate)
on Nov 19, 2002 at 15:44 UTC ( #214155=note: print w/replies, xml ) Need Help??

in reply to Re: How to find empty in empty
in thread How to find empty in empty

Um, '+' means at least one (and you don't need the box): ! /^\s*$/
Anyway, it's even easier just to check for a non-space: /\S/
But, as long as we're at it, why not accept only well-formed lines:
if ( /^(\w+)\s+([\d.]+)/ ) { ($names[$l],$versions[$l])=($1,$2); ++$l; else { . . .


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://214155]
[perldigious]: Being the ignorant one, my initial reaction to that is, "that's sort of a dick move, a lot of people like me expect column names like that to stay the same, why the hell would you change them like that for seemingly no good reason?"
[perldigious]: Or is my irritation/ frustration well founded?
[Corion]: perldigious: That seems to be more the export and likely it's the recipients of that export that like the titles changes
[Corion]: ... "changed"
[Corion]: I usually expect fixed header names, but am sometimes lenient in the order of columns. But changing the report titles often sounds to me as if you are not the sole consument of the export ;)
[shmem]: perldigious: as always - if it ain't broke, don't fix it. Ther must be a very compelling reason for changing column names in a database. Those are rare.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2017-05-25 13:33 GMT
Find Nodes?
    Voting Booth?