in reply to Re: Array reference of hash references
in thread Array reference of hash references

i see! thanks, i was using dumper outside of the scope

I wanted "start" to have the first number and "start" and it looks like its undefined.. Sighs

why would it be undefined? I appreciate all the help you can give.

  • Comment on Re^2: Array reference of hash references

Replies are listed 'Best First'.
Re^3: Array reference of hash references
by toolic (Bishop) on Oct 25, 2011 at 23:06 UTC
    I wanted "start" to have the first number and "start" and it looks like its undefined.. Sighs why would it be undefined?
    Because you are trying to split on single quotes surrounding a single space, but you have no single quotes in your data. Just use this:
    while (<DATA>) { my @off = split;

      Thanks a lot!! I really appreciate it. I guess its all a learning process for me! thanks

      it works fine now. i just wonder why it has "stop" first instead of "start".

        Hashes have no particular order (see perldata).