Skip to content

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
  • Perl

    Access denied for user ‘ODBC’@’localhost

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Access denied for user ‘ODBC’@’localhost I am getting following error while running following command…any help > perl -MCPAN -e “install DBD::mysql”; Error D:\wamp\bin\mysql\MYSQL5~1.36\bin\MYSQLA~1.EXE: connect to server at ‘localhost’ failed error: ‘Access denied for user ‘ODBC’@’localhost’ (using password: NO)’ Problem running D:\wamp\bin\mysql\MYSQL5~1.36\bin\MYSQLA~1.EXE – aborting … Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Access denied for user ‘ODBC’@’localhostContinue

  • Perl

    Perl -MCPAN -e “install DBD::mysql”

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: perl -MCPAN -e “install DBD::mysql” I am getting following issues while running following command in Windows Machine… perl -MCPAN -e “install DBD::mysql” Error Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Perl -MCPAN -e “install DBD::mysql”Continue

  • Perl

    Use of use DBI;

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Use of use DBI; Hi, why do we use following syntax in perl program. can you please explain it? use DBI; rajeshkumar replied the topic: Re: Use of use DBI; Perl’s coolest modules is the Perl database interface (DBI). This module offers a unified interface to different databases, providing a series…

    Read More Use of use DBI;Continue

  • Perl

    Connect to my MySQL database using Perl?

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: connect to my MySQL database using Perl? #!/usr/bin/perl use DBI; $database = “DBNAME”; $hostname = “DBSERVER”; $port = “3306”; $username = “DBUSERNAME”; $password = ‘DBPASSWORD’; $dsn = “DBI:mysql:database=$database;host=$hostname;port=$port”; $dbh = DBI->connect($dsn, $username, $password) or die(“Could not connect!”); $sql = “SELECT * FROM mytable”; $sth = $dbh->prepare($sql); $sth->execute; while(($column1, $column2) = $sth->fetchrow_array)…

    Read More Connect to my MySQL database using Perl?Continue

  • Perl

    Why we use ‘use strict’ in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Why we use ‘use strict’ in perl Hi, Why you should ‘use strict’? what is the significant of “strict” in out module? rajeshkumar replied the topic: Re: Why we use ‘use strict’ in perl Whenever your program gets over a few lines long, definitely when you can’t view the whole program…

    Read More Why we use ‘use strict’ in perlContinue

  • Perl

    Why do you program in Perl?

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Why do you program in Perl? Why do you program in Perl? What are the advantages of Perl ovber python and other languages?

    Read More Why do you program in Perl?Continue

  • Perl

    Difference between exec and system in perl?

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Difference between exec and system in perl? What are the Difference between exec and system in perl? please explain…. rajeshkumar replied the topic: Re: Difference between exec and system in perl? exec function in perl The exec function executes a system command and never returns; use system instead of exec if…

    Read More Difference between exec and system in perl?Continue

  • Perl

    Embed perl in a C++ program / Java Program?

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: embed perl in a C++ program / Java Program? How can I embed perl in a C++ program / Java Program? Any sample program??

    Read More Embed perl in a C++ program / Java Program?Continue

  • Perl

    How to read properties file using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: How to read properties file using perl Hi, i would like to read properties file using perl…Any sample code or any example? My properties file is as such … variable1 = value variable2 = value tpatil replied the topic: Re: How to read properties file using perl Hope this helps…. {code}…

    Read More How to read properties file using perlContinue

  • Perl

    Creating file system info and put into mysql db

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Creating file system info and put into mysql db Create a perl script for following task… 1. Read the directory mentioned by users and list all the files along with their size and Create a property file which has following info of each file. # Server name Path File Name date…

    Read More Creating file system info and put into mysql dbContinue

  • Perl

    To test mysql remote server access using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: To test mysql remote server access using perl perl -MDBI -e ‘DBI->connect(“DBI:mysql:rajesh:rajeshk-W7″,”rajesh”,”rajesh123″) or die DBI->errstr;’ perl -MDBI -e ‘DBI->connect(“DBI:mysql:myDB:server2.whatever.co.uk”,”myuser”,”mypassword”) or die DBI->errstr;’ Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More To test mysql remote server access using perlContinue

  • Perl

    How to Open Directory and read and display all the file using perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: How to Open Directory and read and display all the file using perl Method 1 $DIR = “/home/rajesh”; $DIRHANDLE = “HANDLE”; opendir ($DIRHANDLE, “$DIR”) || die “Error Opening $DIR : $!”; @dirlist = readdir ($DIRHANDLE); foreach (@dirlist) { print “$_ \n”; } Method 2 @dirlist = `ls -A $DIR`; foreach (@dirlist)…

    Read More How to Open Directory and read and display all the file using perlContinue

  • Perl

    How to identify which perl module has been installed.

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: How to identify which perl module has been installed. How to identify which perl module has been installed. rajeshkumar replied the topic: Re: How to identify which perl module has been installed. rmp -qa | grep perl Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn puneetbhatia77 replied the topic: Re: How to…

    Read More How to identify which perl module has been installed.Continue

  • Perl

    Find out which perl module installed?

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: find out which perl module installed? Hi, what is the way to find out perl module which has been installed in unix / linux system? rajeshkumar replied the topic: Re: find out which perl module installed? try out this? find `perl -e ‘print “@INC”‘` -name ‘*.pm’ -print | tee ~/Perl-modules-installed.txt Regards,…

    Read More Find out which perl module installed?Continue

  • Perl

    $_ and @_ in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: $_ and @_ in perl Hi, Can you please talk about $_ and @_ in perl?

    Read More $_ and @_ in perlContinue

  • Perl

    Difference Between lexicon and global in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Difference Between lexicon and global in perl Hi, What is the difference Between lexicon and global in Perl? Could you please elaborate with few good examples? thanks

    Read More Difference Between lexicon and global in perlContinue

  • Perl

    Difference between my and use

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Difference between my and use Hi, What is the difference Between my and use in Perl? Could you please elaborate with few good examples? thanks

    Read More Difference between my and useContinue

  • Perl

    Use of STDIN in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Use of STDIN in perl What are the various ways we can use STDIN in perl. Could you please provide some examples?

    Read More Use of STDIN in perlContinue

  • Perl

    Types of Perl Data types

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Types of Perl Data types What are the varius data types available in perl? could you please provide details with examples?

    Read More Types of Perl Data typesContinue

  • Perl

    Questions for scalar variable in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Questions for scalar variable in perl Hi, Could you please explain following questions in details.. 1. Various way to define and initialize scalar variable. 2. Various ways to print scalar variable? 3. Various ways to use scalar variable in programming?

    Read More Questions for scalar variable in perlContinue

  • Perl

    Questions over Arrays variable in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: Questions over Arrays variable in perl Hi, Could you please explain following questions in details.. 1. Various way to define and initialize Arrays variable. 2. Various ways to print Arrays variable? 3. Various ways to use Arrays variable in programming? 4. How to display Numbers of Arrays? 5. How to Print…

    Read More Questions over Arrays variable in perlContinue

  • Perl

    Questions over hash variable in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    scmuser created the topic: questions over hash variable in perl Hi, Could you please explain following questions in details.. 1. Various way to define and initialize hash variable. 2. Various ways to print hash variable? 3. Various ways to use hash variable in programming? 4. How to Store Hash key values to array and print…

    Read More Questions over hash variable in perlContinue

  • Perl

    Regular expression perl question

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Regular expression perl question I am just beginner in perl. Just want to do following task through regular expression. I have huge sql file and trying to replace value of each line first 4 digit separated by comma. FILE 1: (7, 0, 7, 55, NULL, 0, ”, ‘Wise Package Studio Overview…

    Read More Regular expression perl questionContinue

  • Perl

    Useful info on Perl defined Function

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Useful info on Perl defined Function Very good url for the following topis… How to use Perl defined function with scalars How to use Perl defined function with an array How to use Perl defined function with a hash How to use Perl defined function with www.misc-perl-info.com/perl-defined.html Regards, Rajesh Kumar Twitt…

    Read More Useful info on Perl defined FunctionContinue

  • Perl

    Difference between use and require in perl

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Difference between use and require in perl || use Vs require in perl || What is the difference between use and require? Except of course that use is evaluated at compile time where as require is evaluated at run time in other word, A use anywhere in the code will be…

    Read More Difference between use and require in perlContinue

  • Perl

    Convert df -h output to html table

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: convert df -h output to html table Code shared on permonks by choroba. #!/usr/bin/perl use warnings; use strict; use Text::Table; use constant CAPACITY => 3; my @lines = `df -hP`; my $header = shift @lines; # Do not create two columns for “Mounted” and “On” $header =~ s/Mounted /Mounted_/; my $table…

    Read More Convert df -h output to html tableContinue

  • Perl

    Using perl send an html email

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: using perl send an html email Using perl send an html email #!/usr/bin/perl -w use strict; use MIME::Lite; # SendTo email id my $email = ‘rajesh@scmgalaxy.com’; # create a new MIME Lite based email my $msg = MIME::Lite->new ( Subject => “HTML email test”, From => ‘rajesh@scmgalaxy.com’, To => rajesh@scmgalaxy.com, Type…

    Read More Using perl send an html emailContinue

  • Perl

    Send an HTML email using perl and sendmail

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Send an HTML email using perl and sendmail Send an HTML email using perl and sendmail open(MAIL,”|/usr/sbin/sendmail -t”); ## Mail Header print MAIL “To: rajeshk\@xxx.com\n”; print MAIL “From: rajeshk\@xxxx.com\n”; print MAIL “Subject: TEST\n”; ## Mail Body print MAIL “Content-Type: text/html; charset=ISO-8859-1\n” . “@emailBody”; close(MAIL) Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Send an HTML email using perl and sendmailContinue

  • Perl

    Perl script to monitor disk space and send an email

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: Perl script to monitor disk space and send an email Perl script to monitor disk space and send an email Very good link i found out. www.cyberciti.biz/tips/howto-write-perl-…itor-disk-space.html Regards, Rajesh Kumar Twitt me @ twitter.com/RajeshKumarIn

    Read More Perl script to monitor disk space and send an emailContinue

  • Perl

    Perl validation on hash key is defined or not

    ByRajesh Kumar December 8, 2017February 1, 2025

    rajeshkumar created the topic: perl validation on hash key is defined or not Solutions Thanks Len for example program. our %SERVERS = ( “rajesh1” => {type => ‘prod’, sha => ‘ram’}, “rajesh2” => {type => ‘prod’, sha => ‘sita’}, “rajesh3” => {type => ‘xyz’, named => [“raa”]}, “rajesh4” => {type => ‘xxx’, named => [“rajjaj”]},…

    Read More Perl validation on hash key is defined or notContinue

Page navigation

Previous PagePrevious 1 … 349 350 351 352 353 … 388 Next PageNext

© 2026 - WordPress Theme by Kadence WP

  • Top Certifications
  • Courses
  • Tutorials
  • Forum & Support
  • DevOps Tools
  • Slides
  • Update
  • Professional
Search