Thanks Tim. I tried to enter that on the command line as you have below, but I 
receive the following (NiceSlice shown as loaded).

        C:\Users\eclisob\Desktop>pdl2
        load_rcfile: got $HOME = C:\Users\eclisob
        load_rcfile: loading PDL/default.pdl
         
        ******************************************
        * Warning: TERM type is dumb!            *
        * Limited ReadLine functionality will be *
        * available.  Please unset TERM or use a *
        * different terminal type.               *
        ******************************************
         
        Perldl2 Shell v0.006
              PDL comes with ABSOLUTELY NO WARRANTY. For details, see the file
              'COPYING' in the PDL distribution. This is free software and you
              are welcome to redistribute it under certain conditions, see
              the same file for details.
        Loaded plugins:
          CleanErrors
          Commands
          Completion
          CompletionDriver::LexEnv
          CompletionDriver::Methods
          DDS
          FindVariable
          History
          LexEnv
          MultiLine::PPI
          NiceSlice
          PDLCommands
          Packages
          PrintControl
          ReadLineHistory
        Type 'help' for online help
        Type Ctrl-D or quit to exit
        Loaded PDL v2.4.10
        pdl> no NiceSlice
        Compile error: Can't locate NiceSlice.pm in @INC (@INC contains: 
C:\strawberry\perl\lib C:\strawberry\perl\site\lib/MSWin32-x86-mult
        i-thread C:\strawberry\perl\site\lib 
C:/strawberry/perl/site/lib/MSWin32-x86-multi-thread 
C:/strawberry/perl/site/lib C:/strawberry/
        perl/vendor/lib C:/strawberry/perl/lib .) at (eval 419) line 7, <IN> 
line 1.
        BEGIN failed--compilation aborted at (eval 419) line 7, <IN> line 1.

Thanks,
CLIFF SOBCHUK
Core RF Engineering
Phone 613-667-1974   ecn: 8109-71974
mobile 403-819-9233
yahoo: sobchuk
www.ericsson.com <http://www.ericsson.com/>  

"The author works for Telefonaktiebolaget L M Ericsson ("Ericsson"), who is 
solely responsible for this email and its contents. All inquiries regarding 
this email should be addressed to Ericsson. The web site for Ericsson is 
www.ericsson.com."

This Communication is Confidential. We only send and receive email on the basis 
of the terms set out at www.ericsson.com/email_disclaimer 
<http://www.ericsson.com/email_disclaimer> 

 

________________________________

From: Tim Haines [mailto:[email protected]] 
Sent: Thursday, August 16, 2012 4:10 PM
To: Clifford Sobchuk; [email protected]
Subject: [Perldl] DBI and pdl2


Hi, Cliff.

It looks like NiceSlice (pdl2 use's this by default) is mangling your call to 
DBI::do. The easiest thing to do is turn off NiceSlice.

pdl> no NiceSlice;

pdl> use DBI
pdl> $dbh=DBI->connect("dbi:CSV:", "","",{f_dir=>"."})
pdl> $table="FwdGain"

pdl> $dbh->do ("CREATE TABLE $table (id INTEGER, name CHAR (10), fwdGain 
INTEGER)")


You can turn it back on with 'use NiceSlice;' if you need it later in the same 
session.

Hope that helps.

- Tim




        ---------- Forwarded message ----------
        From: Clifford Sobchuk <[email protected]>
        To: "[email protected]" <[email protected]>
        Cc: 
        Date: Thu, 16 Aug 2012 14:06:47 -0400
        Subject: [Perldl] DBI and pdl2
        
        Hi folks, wondering if anyone has ever tried using DBI in the pdl2 
shell. I am using PDL 2.4.10 on win32. 
         
        pdl> use DBI
        pdl> $dbh=DBI->connect("dbi:CSV:", "","",{f_dir=>"."})
        pdl> $table="FwdGain"
        pdl> $dbh->do ("CREATE TABLE $table (id INTEGER, name CHAR (10), 
fwdGain INTEGER)")
        Can't find column definitions! at 
C:\strawberry\perl\site\lib/SQL/Statement.pm line 88.
        DBD::CSV::db do failed: Can't find column definitions! [for Statement 
"CREATE TABLE FwdGain ->nslice(idINTEGER,nameCHAR(10),fwdGainI
        NTEGER)"] at (eval 434) line 5, <IN> line 5.
         
        Any thoughts. Thanks,


        CLIFF SOBCHUK
        Ericsson
        Core RF Engineering
        Calgary, AB, Canada
        Phone 613-667-1974  ECN 8109 x71974 
        Mobile 403-819-9233
        [email protected] <mailto:[email protected]>  
        yahoo: sobchuk
        http://www.ericsson.com/ 

        "The author works for Telefonaktiebolaget L M Ericsson ("Ericsson"), 
who is solely responsible for this email and its contents. All inquiries 
regarding this email should be addressed to Ericsson. The web site for Ericsson 
is www.ericsson.com."
        
        This Communication is Confidential. We only send and receive email on 
the basis of the terms set out at www.ericsson.com/email_disclaimer 
<http://www.ericsson.com/email_disclaimer>  




_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to