in reply to Splitting \0

Can you please post a dump of $fd?
use Data::Dumper; ... print Dumper($fd);


holli, /regexed monk/

Replies are listed 'Best First'.
Re^2: Splitting \0
by Quicksilver (Scribe) on Jun 01, 2007 at 11:30 UTC

    With the split uncommented:

    SELECT 1 FROM test.lists WHERE Listname

    With split commented:

    SELECT 'DateCreated\0DateDeleted\0DateRenamed\0OldListname\0DateChecked' FROM test.lists

    If I print $fd I get:

    $VAR1=undef

    As per above, any help so I can learn from a practical example gratefully appreciated

      Where/when did you print Dumper($fd)? You say it is undef, but as i read, it must contain some data. FunkyMonk is right, it must read print Dumper(\%fd). Could you please put that just before the loop construct?
      And if it's true that you used print Dumper($fd), it shows you didn't use strict; and you will have to face the inqusitors :-)


      holli, /regexed monk/
        It isn't a reference!

        print Dumper \%fd;

        It looks a touch different with that:

        $VAR1 = { 'txtSQL' => 'SELECT Listname,DateCreated,DateDeleted,DateRenamed,OldListname,DateChecked FROM lists

        I've also replaced the strict ;-)