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 strongm 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. AHinMaine

    replacing a perl module

    Also, did you restart your web server after restored the original script? -- Andy "Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
  2. AHinMaine

    installation of PERL on AIX4.3

    libdb is the berkley db library, see sleepycat.com libgdbm is the GNU database manager. See the gdbm page. -- Andy "Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
  3. AHinMaine

    'not an ARRAY reference' ERROR

    Whoa whoa... reinstall perl, change httpd.conf.... hold up. Let's start simple. This is usually caused by something like $foo->[0] when it should be $foo[0]. Or even something like: for ( @$foo ) { ... } when $foo is not an array ref. Or, a bit more subtle, using @$foo when $foo is...
  4. AHinMaine

    DNS Server Status?

    Crude an inaccurate. Just because the port doesn't show up as closed doesn't mean the service is responding. I'd recommend something like the nagios plugins. You can install them without even installing nagios, and the check_dns utility is much more accurate at determining the state of dns...
  5. AHinMaine

    Seeking mini-DBMS perl script

    Where does it say which part? Since my response pertains to almost every line of the original post, I'm not sure which part you're confused about... -- Andy "Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
  6. AHinMaine

    SQL TimeOut Error - Win32::ODBC

    What is the error message in the web server log? -- Andy "Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
  7. AHinMaine

    Seeking mini-DBMS perl script

    Umm... So let's get this straight. You want a DBMS, but you don't want to: A) Install a DBMS, B) Install perl modules, yet, despite A and B, you don't want to reinvent the wheel? I guess you'll have to turn to the force for that one... ;) Seriously, though. Go to cpan and look for SQLite...
  8. AHinMaine

    How do you capture SQL ODBC DUMPDATA to a logfile?

    This is totally untested, but I'd probably give something like this a try. use strict; use warnings; my $db = new Win32::ODBC( 'Driver={SQL Server};Server=$newdb;Database=$dbname;uid=$uid;pwd=$pw') or die "Unable to connect to database"; my $sql_statement; # use your sql query...
  9. AHinMaine

    Exploring Hash of Hash

    Simple enough. Just search the monastary for hash duplicates or something like that and you'll see plenty of responses. -- Andy "Historically speaking, the presence of wheels in Unix has never precluded their reinvention." -- Larry Wall
  10. AHinMaine

    Exploring Hash of Hash

    Whenever you find yourself treating keys as values, realize that it's a BadIdea(tm). For this case, I would do: my %foo = ( $id => { last => 'harrison', first => 'andy', phone => 'myphone', dob => 'bday' } ); Then you can do things like: print...
  11. AHinMaine

    stepping through arrays

    Another thing you could do... Instead of command > diskfile you could do command | yourscript.pl Then this should work: #!/usr/local/bin/perl -lnw for ( <> ) { chomp; next if m/^$/; next if m/^\-+/; print; # # your code # ... } -- Andy...
  12. AHinMaine

    stepping through arrays

    You probably ought to have a look at File::Slurp. It's pretty simple and would probably fit the bill nicely. -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  13. AHinMaine

    I need two lists printed from a MySql database. Why doesn't this work?

    FYI, for future reference, it is generally not a good idea to post your password in public forums. You really need to trash this code and start again. First, use CGI to parse forms. Second, do not trust user input. If you allow the user to insert any text they want in a form field and don't...
  14. AHinMaine

    I need two lists printed from a MySql database. Why doesn't this work?

    The script. Especially, but not limited to, the sql. -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  15. AHinMaine

    I need two lists printed from a MySql database. Why doesn't this work?

    We aren't dentists. Post all relevent portions of the script, error messages, versions, module versions, etc... -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  16. AHinMaine

    automatically close command prompt window

    Just quote only what you need to quote... F:\>start C:\"test folder"\file.html -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  17. AHinMaine

    Routing Problem

    Did you perform the ifconfig qfe0:1 up? -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  18. AHinMaine

    trouble emailing files with commas from an array

    I'd probably have a look at URI::Escape. If there's a comma being passed to your script from the form, it's not being passed as a comma, it's being passed as its ascii equiv. -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their...
  19. AHinMaine

    Compare Two Files

    man patch -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall
  20. AHinMaine

    Compare Two Files

    No need to complicate things unnecessarily. diff file1 file2 > files.diff You can then use it as a patch. -- Andy http://www.nachoz.com &quot;Historically speaking, the presence of wheels in Unix has never precluded their reinvention.&quot; Larry Wall

Part and Inventory Search

Back
Top