Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: DBIx::Dump error

by saintly (Scribe)
on Mar 26, 2007 at 22:56 UTC ( #606679=note: print w/replies, xml ) Need Help??

in reply to DBIx::Dump error - can't use string as subroutine ref

Although I'm shooting in the dark here (it would help to know the version of DBIx::Dump that you have, and the values of the CGI parameters), it looks like your variable


Is probably not one of the recognized formats that DBIx::Dump will print in. Perhaps you can hard-code it to 'excel' or 'csv' and see if that solves the problem.

P00py, looks like mreece beat me to this one. =) Well, it wouldn't hurt if the author of DBIx::Dump did some validation on their input. The 'problem line' 149 in is:
So it's just attempting to exec a function associated with the 'format' query you provide, but it doesn't check to see if it's a valid function first. The CPAN docs don't say what functions are valid, but on lines 137-141 of you can see:
my %formats = ( 'excel' => $excel, 'csv' => $csv, 'iQuery' => $iQuery );
Which shows you the valid strings it will take as formats.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://606679]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2023-09-21 11:44 GMT
Find Nodes?
    Voting Booth?

    No recent polls found