Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 = [];


Comment on Re^2: Trouble matching string with decimals
Download Code
Re^3: Trouble matching string with decimals
by choroba (Abbot) 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 (Parson) 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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (17)
As of 2014-10-22 14:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (118 votes), past polls