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 TouchToneTommy 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: *

  • Users: CherylD
  • Content: Threads
  • Order by date
  1. CherylD

    DBD::Sybase and TDS for SQL 2000

    I've been using this combination of things for sometime with no problems until now. The problem now is that I've started to work with BLOB type data (images). I've found examples of this working and have replicated only to get a syntax error. Here is my error, which occurs at...
  2. CherylD

    if (undef and 1)

    I'm looking over a colleague's code and they start off a script with: if (undef and 1) { } Does anyone have an idea about what this represents? Nothing occurs in this script before this point besides a few use statements: use strict; use Dargal::Web; use File::Find; use Data::Dumper;
  3. CherylD

    matches and regexp

    Say I have a string: " This is a sting 123-456" I want to pull out the item at the end of the string which will always contain the charcter "-" with characters before and after it. I need some help with the regexp on this....Any suggestions on where to start?
  4. CherylD

    Join on a stored procedure

    I have a large query that I've been building into pieces. I need to select one row for each product. But a join on the itinerary for each product would return multiple rows. What I have done for the itinerary is written a stored procedure to concatenate each of the itinerarys into one item...
  5. CherylD

    HTML::Parser and Cookies

    I'm using the HTML::Parser module and everything is the way that I want it. What I want to do is set a temporary cookie before parsing the html page. Any suggestions on how to do this? Here is what I am trying to do (which doesn't work): print header(...
  6. CherylD

    TWO DBIs ONE SQL Statement...Possible?

    I am wondering if anyone here has ever had the instance of using 2 diffent DBIs, one connects to a Postgres table and one to a SQL 2000, but has written one sql statement. I am interested in joining the 2 different tables in a sql statement. Now I can still manage to do what I want, but...
  7. CherylD

    escape single quotes in a hash

    I have a hash of values that replace holders within an rtf document. when one of the hash values ($dict{COMMENTS}) contains a single quote the whole value is not placed on the document. This is what is being done: foreach $key(%dict) { $dict{$key}=~ s/\*/\\\*/g; $dict{$key}=~ s/\'/\\\'/g...
  8. CherylD

    Retrieve URL of current page

    Does anyone know how to retrieve the URL of the current page? I've got an .shtml file which includes a perl script. Within that perl script I want to dynamically determine what text to show. To do this I would need to know the URL that I am on and based on what is in that URL would decide...
  9. CherylD

    WHERE with wildcards

    I'm using a where clause that checks a description field, and selects where that description is NOT like something. For some reason, this excludes all records whose description field is null. EG. WHERE sysdba.SALESORDERDETAIL.DESCRIPTION NOT LIKE '%Membership%' If description =...
  10. CherylD

    Perl and Excel - reading and writing formulas

    I'm working with a template excel file on a linux machine. I read from this file, use sql to gather a few bits of info, and then write this file again with the info filled in. The reason Excel is being used is because the management created this file and will frequently change it, but will...
  11. CherylD

    Fetch DB results into an array, not a row array

    I'm wondering if there is a way to fetch the results of a query into an array. Not the row results in an array, but the whole result set. The SQL query is only pulling one field. The reason I want to do this is I want to get all the ID fields and then put that into an array to then be able to...
  12. CherylD

    Stored procedure to loop and increment ints and varchars

    I have a stored procedure that takes a value out of the database (eg. A001UD7) and recursively increments it. If the value is a 9, the next should be A, and if the value is Z the next is 0. Here is the stored procedure: SET QUOTED_IDENTIFIER OFF GO SET ANSI_NULLS OFF GO ALTER PROCEDURE...
  13. CherylD

    Email .xls as attachment

    I am using the Spreadsheet::WriteExcel module for the first time. I create a spreadsheet in a directory. If I ftp to that server I can download the spreadsheet and read it just fine. So I decided to mail it using MIME::Lite. It appears to come through OK to my email client (Outlook), but...
  14. CherylD

    Special character file name File Open Problem

    I have an odd character named file,and I cannot open it. I am using: open(SUBJECT,'/var/www/cgi-bin/dargalbroadcast/Fri\ Dec\ 13\ 13\:45\:09\ 2002subject'); or I actually put teh filename in a variable and call: open(SUBJECT,"$filename"); The file won't open, any ideas?
  15. CherylD

    MIME::Lite and mail bounces

    I've been working with MIME Lite to do some HTML formatted email. Ih ave it working great, except for one thing. The return-path. Although I specify replyto, from, errorsto all to a valid email address, the return-path in the message headers is always different. Generally it relates to the...
  16. CherylD

    Use DBD:LDAP

    I'm experimenting with LDAP, and my limited knowledge of LDAP itself it causing the limitations. I have been able to connect, but only as an anonymous user. And when I use select * , I get no results (but no errors). Has anyone else played around with this? I thought it would be much easier...
  17. CherylD

    Passing object, where do the properties go!

    I have a form which calls upon an ASP script which actually processes the payment through our bank. Then based on a variable located on the first form redirect to a different page (a custom receipt more or less). What I need is to access the transaction object and its properties on the receipt...
  18. CherylD

    Perl script to run scp cmd

    I have a perl script that securely transfers a file from the machine that is runnign the script to another. I am using the linux scp command. I have secure keys generated on both machines and via command line the scp command works, within the script it doesn't. Here is what the script is...
  19. CherylD

    Cookies - reading, then redirecting

    Hi there. I have a website with cookies created when a user is logged on. Some pages should only be viewable to those logged in. Here's what I've got, but it's not working: <? if (isset ($cookie)) { return false; //do nothign } else{ header(&quot;Location...
  20. CherylD

    Stored Procedure Vs. Select Statement

    After having this discussion with a colleage I'm looking for more opinions. From a programming standpoint, why would on always use a stored procedure over a sql select statement. What are the pros and cons of each? If the point of writing the procedure is to only select a field or two from...

Part and Inventory Search

Back
Top