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. rdyoll

    Raw Mime Questions???

    Hello, I've read the raw mime FAQ (http://www.tek-tips.com/gfaqs.cfm/lev2/4/lev3/32/pid/219/fid/2901) and understand everything except the way in which you actually print the different types of attachments. Let's say you want to attach a .gif. Once you set the Content-Type and disposition, does...
  2. rdyoll

    Easy associative array question

    Thank you!
  3. rdyoll

    Easy associative array question

    ...if I do this: foreach $_(keys %beverage) { $beverage = $beverage{$_}; print "$_ => $beverage{$_}\n"; } it will return: coffee => Folgers tea => Lipton milk => DairyFresh ...but outside the loop, if I do this: print $beverage; if the chosen value was coffee, it still prints DairyFresh...
  4. rdyoll

    Easy associative array question

    ...ok, Paul, so what would one do to have the proper selected value displayed?
  5. rdyoll

    Easy associative array question

    Hi, In my form I have a select box with the name="beverage". I have 3 options: coffee, tea and milk. I have in my script set up an associative array: $beverage = param('beverage'); %beverage = (coffee => 'Folgers', tea => 'Lipton', milk => 'DairyFresh'); foreach...
  6. rdyoll

    Deleting a cookie

    ...Thank you, I never looked at it that way... Cheers!
  7. rdyoll

    Deleting a cookie

    Hi, I'm setting cookies, and reading them just fine, but how do I delete a cookie. I'm setting the cookie via the print header(-cookie => $cookie); method. Do I just overwrite it, or what? I tried delete(cookie('name')), unlink(cookie('name')) and several others, but to no avail. I've read...
  8. rdyoll

    Perl Back Button Issues.

    ...thank you, icrf, for your response. I was just curious.
  9. rdyoll

    Is there an easy way to find the length of a substring...?

    ...no prob, Paul...
  10. rdyoll

    Perl Back Button Issues.

    I'm trying to come up with a Perl back button in my scripts. I know using the referer will produce this, and generally suits me fine, but sometimes I want to return to the prior invocation of my script and retain the exact state it was in. So, using the self_url() returns the current state of...
  11. rdyoll

    Is there an easy way to find the length of a substring...?

    ...AHAAAAA, I knew there was something I was missing... Thank you!!
  12. rdyoll

    Is there an easy way to find the length of a substring...?

    If I have a variable such as $data ($data will be a string of text), and: if (substr($data, 0) > 30) { do something; } obviously, this does not work. What am I missing?
  13. rdyoll

    How does one find the total (sum) of an array?

    [thumbsup2]...thanks a bunch, guys!!
  14. rdyoll

    How does one find the total (sum) of an array?

    Hi, let's say I have: @numbers = qw/34 56 78 83 23 99 10/; How can I find the "sum" of all the elements in the array? I've tried pushing a "+" (plus sign) into the array and adding it up that way, but there has to be a better way. The total is 383, but, I don't know the routine to follow to...
  15. rdyoll

    Limit table cell to only be taller in actual cell needing the extra ro

    I just had to explicitly define the columns's widths...works fine, now.
  16. rdyoll

    Limit table cell to only be taller in actual cell needing the extra ro

    Hi, I know the subject line is not very expressive of my dilema, but what I'm trying to accomplish is only allowing the cells in my outputted data table that need to be more than one line high...be only in "that" row, not all rows... I'm using a: foreach $_(@data) { print Tr([...
  17. rdyoll

    Image submit button using CGI.pm shortcut method

    ...philote, yes, it works fine...I can't believe I was confused... I just had it in my head it needed to be a submit...thanks for the links... ...a star for you for explaining what I knew, but it was just not sinking in...hehe...
  18. rdyoll

    Image submit button using CGI.pm shortcut method

    ...well, I saw that in CGI.pm, but really I was looking for a submit button(IS THIS EQUIVALENT TO A SUBMIT?)...it does "seem" to submit...
  19. rdyoll

    Image submit button using CGI.pm shortcut method

    Hi, just wondering if there is a solution for using an image for a submit button using the HTML shortcut. I've tried it using a background image, but not the way you can do it using a regular image and regular syntax: <input type=&quot;image&quot; src=&quot;the_image.gif&quot;>, but, this is...
  20. rdyoll

    Popup Menu (CGI.pm) Question

    EXCELLENT! I knew there was an easier way. Works Awesome.

Part and Inventory Search

Back
Top