Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: Trouble matching string with decimals

by deshdaaz (Novice)
on Jul 22, 2013 at 20:47 UTC ( #1045721=note: print w/replies, xml ) Need Help??


in reply to Re: Trouble matching string with decimals
in thread Trouble matching string with decimals

Hi, When I used data Dumper, I get below. Not sure why I see these empty vars. When I print them with regular print statement in loop, they just come out as in my first post.
$VAR1 = []; $VAR1 = [ "0.940V\r\n" ]; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = [ "0.940V\r\n" ]; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = []; $VAR1 = [];

Replies are listed 'Best First'.
Re^3: Trouble matching string with decimals
by choroba (Chancellor) on Jul 22, 2013 at 21:38 UTC
    Yes, printing nothing (or @{ [] } ) does not print anything. Your array is sparse.
    لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re^3: Trouble matching string with decimals
by Laurent_R (Abbot) on Jul 23, 2013 at 20:29 UTC

    You did not show enough code for us to figure out what's going on, but the data dumper output, with all these empty values, seems to indicate that you have something wrong in the way you populate your data structure in the first place.

    Please post the whole code or, if it is large, the smallest subset of your code that demonstrates the problem. As well as your input file if your data is coming from a file.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045721]
help
Chatterbox?
and cookies bake in the oven...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-03-24 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (310 votes). Check out past polls.