Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. lit8rtot

    Use of $# to get array size in Perl 5.10

    Thank you all!!
  2. lit8rtot

    Use of $# to get array size in Perl 5.10

    I apologize if this is a repeat. The following code works on Perl v5.8.8, but does not on v5.10.0. #!/usr/bin/perl use strict; sub getListIdx { my $listref = shift; my $sval = shift; for (my $i=0; $i<=$#{@{$listref}}; $i++) { if ($sval eq...
  3. lit8rtot

    How to stop Perl from removing table formatting from mysql command?

    If the Perl DBI/DBD module came installed on all systems, I'd use it. However, my scripts have to run on a wide variety of systems, many of which I don't control what is installed. I've found that if the system has mysql installed, I have access to the mysql command line interface. Parsing...
  4. lit8rtot

    How to stop Perl from removing table formatting from mysql command?

    I think you are right - it isn't Perl that is doing the stripping: From a shell prompt, I run the following: $ mysql -u foo -D dbname -e 'Select * from ADDRESS' +----+-------------+---------+--------------+--------------+ | ID | DISPLAYNAME | OPTLOCK | IPADDRESS | BASEASSET_ID |...
  5. lit8rtot

    How to stop Perl from removing table formatting from mysql command?

    I am executing the mysql command from within Perl scripts (long story why not using Perl DBI module). What I am finding is that Perl is stripping out the "table border" characters that are normally output by the mysql command when doing a select from a table. For example, I get this: ID...

Part and Inventory Search

Back
Top