Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: MySQL/MariaDB DBD install problem

by ABayko (Novice)
on Sep 23, 2024 at 22:18 UTC ( [id://11161905]=note: print w/replies, xml ) Need Help??


in reply to Re: MySQL/MariaDB DBD install problem
in thread MySQL/MariaDB DBD install problem

I tried the statement and it produced an error "Can't find string terminator "'" anywhere before EOF at -e on line 1." This was a cut and paste so the chance of a typo is low. Is this statement for linux? I am using windows command line.

  • Comment on Re^2: MySQL/MariaDB DBD install problem

Replies are listed 'Best First'.
Re^3: MySQL/MariaDB DBD install problem
by etj (Priest) on Sep 25, 2024 at 14:50 UTC
    This is an example where I think a better idiom for telling people to run commands isn't to give them a shell-prompt starting point, but a Perl one, so here:
    $ perl -wE 'for my $d (@INC) { -s "$d/DBD/mysql.pm" and say "$d/DBD/my +sql.pm" }'
    would become:
    C:\strawberry>perl -de 0 Loading DB routines from perl5db.pl version 1.57 Editor support available. Enter h or 'h h' for help, or 'perldoc perldebug' for more help. main::(-e:1): 0 [errors from Term::ReadKey to be ignored] DB<1> for my $d (@INC) { -s "$d/DBD/mysql.pm" and say "$d/DBD/mysql. +pm" } C:/strawberry/perl/vendor/lib/DBD/mysql.pm
    That would then be immune to the vagaries of Windows command lines.
Re^3: MySQL/MariaDB DBD install problem
by NERDVANA (Priest) on Sep 24, 2024 at 20:21 UTC
    Yeah unfortunately the Windows command line doesn't treat ' as quote characters, so the whole thing would need to be inside double-quotes, and the perl strings within would need to be a different quoting syntax like qq{...}. The Windows command line is much less useful for one-liners than Bash. This is yet another good argument for Cygwin, since cygwin provides a fully unix-compatible terminal window.

    If you already have code written for Strawberry, though, switching to cygwin perl means you have to check all your usage paths to make sure they are forward-slashes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2026-03-16 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.