in reply to Formatting and write help

Curly braces define an anonymous hash reference, you want parens to make a list:

my @addr = ($one, $two);

Edit: Beaten by Ikegami, which seems to be a running theme :).

Replies are listed 'Best First'.
Re^2: Formatting and write help
by negzero7 (Sexton) on Apr 15, 2008 at 02:21 UTC

    Whoops, silly mistake there. Ok, that is fixed, but I am getting this error:

    write() on unopened filehandle CHECK at line 63, <STDIN> line 10.

    Now I'm assuming that means that my filehandle CHECK is somehow not initialized or it's not formatted properly to be read. Any help with that one?