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

Re^2: Argument "" Isn't numeric in numeric eq (==)

by AnomalousMonk (Chancellor)
on Feb 10, 2014 at 12:30 UTC ( #1074234=note: print w/replies, xml ) Need Help??

in reply to Re: Argument "" Isn't numeric in numeric eq (==)
in thread Argument "" Isn't numeric in numeric eq (==)

I agree that ler224's OP is no more than a hint of a suggestion of a specification, but the only way I can see to get an array containing empty strings from something like  1,1,,,, is if it's a string  '1,1,,,,' that's been subjected to some kind of split operation. If  1,1,,,, is a list literal, all those commas flatten to nothing.

c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my @ra = ([1,1], [1,1,,,,], [1,1,,,,,,,,,,,,]); dd \@ra; " [[1, 1], [1, 1], [1, 1]]

Replies are listed 'Best First'.
Re^3: Argument "" Isn't numeric in numeric eq (==)
by kcott (Chancellor) on Feb 11, 2014 at 04:52 UTC

    While I don't disagree with you, I think we could guess at the data structure and missing code until the cows come home and still get it wrong.

    My intent was really just meant to provide an idea of how the task might be tackled:

    "Here's a technique ... you can probably modify it ..."

    [I also note that it's more than a day and half since the OP was posted and, despite a number of replies raising issues with it, ler224 has provided no clarification whatsoever.]

    -- Ken

      I also saw that the only reply by ler224 was to CountZero's first reply and only very shortly after the timestamp of the OP — and it did not address the pertinent part of the Count's suggestion! Not the sort of engagement one hopes to see.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074234]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-07-21 11:16 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (448 votes). Check out past polls.