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

  • Users: serpento
  • Order by date
  1. serpento

    Sort UK style dates

    Cheers ishnid, that looks like a very reasonable way to complete the task and I will definately use it. Thankyou, have a star. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  2. serpento

    Sort UK style dates

    Thanks for your help, parkers! I didn't know you could just put reverse to sort in reverse. I think in the end I'll use this code: foreach $dream (@tableOfDreams) { @dateOfDream = split('/', uptoFirst("\n", $dream)); #split into dd, mm, yy $dream =...
  3. serpento

    Sort UK style dates

    I've got an array full of dates in the form ('dd/mm/yy', 'dd/mm/yy', ... etc. (I'm from the UK). I want to use Perl's built in sort function to sort them in order and in reverse order. Any help much appreciated. -Ed ;-) ________________________________ Destiny is not a matter of chance; it...
  4. serpento

    Syntax error - but where?

    Hi Mike, Thanks loads, your help is much apprecited as it has solved my problem perfectly. I won't be making that mistake again! Have a star. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  5. serpento

    Turn off interpolation in print << ?

    Thanks that perfect! Have a star. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  6. serpento

    Syntax error - but where?

    The code bellow was working fine until I changed something by mistake and suddenly it says only this when I try to run it: Warning: Content-Type header not found in the script output. If this script is not a CGI one, please use the Run -> Run in Command Prompt menu to run it. Execution of...
  7. serpento

    Turn off interpolation in print << ?

    I have recently discovered the folloeing device: print <<HTML_END; (What you want to print) HTML_END And find it very useful. My questiuon is this: if what you want to print contains lots of @ and $ signs in (as in talking about email addresses and currency rather than variables), is there...
  8. serpento

    Regex to check its all digits

    Thank you all for your help, you have all solved my problem perfectly! Have a star each. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  9. serpento

    Regex to check its all digits

    I'm only a beginner at using regular expressions, and would like to know how to use one to see if $variable contains only digits or not. I.e. I want a statement that returns false if $variable contains any character other than a digit. Any help would be very much appreciated. -Ed ;-)...
  10. serpento

    A variable of which the name is stored in another variable

    Thanks Paul, thats solved my problem brilliantly! Have a star. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  11. serpento

    A variable of which the name is stored in another variable

    If I have the name of a variable stored in another variable, can I read the contents of the variable? EG: $nameOfVariable = &quot;foo&quot;; $foo = &quot;contents of variable that I want to read&quot;; # Now, supposing that $foo could be anything, # eg. $sweetcorn, is it possible to...
  12. serpento

    Sort list alphabetical?

    What would you say is the best way to sort a list in alphabetical order? Any help would be apprieciated, Merry Xmas, -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  13. serpento

    How to check valid hex?

    Thanks loads for your help! Here's the code I'm using in the end: function isHex(string) { if (string.length!=6) return false; for (i=0; i<6; i++) { if (isNaN(parseInt(string.charAt(i), 16))) {return false;} } return true; } -Ed ;-)...
  14. serpento

    How to check valid hex?

    What's a quick way to check that a six character string is a valid hex value (i.e. contains only numbers and letters A-F?)? I expect it would invlove regular expressions but haven't got the hang of them yet, so would apprieciate some help. -Ed ;-) ________________________________ Destiny is...
  15. serpento

    $_SERVER in Perl?

    Thank you, that $ENV{'HTTP_REFERER'} is all I needed. I'll ask questions more directly in future. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  16. serpento

    $_SERVER in Perl?

    As Topmach and Haunter suggested, I don't think I went about solving the problem in the right way. I have a perl script loaded every time there's a 404 error. Can I get to a variable that says what file they were trying to access to get the error? -Ed ;-) ________________________________...
  17. serpento

    I've started making a website using

    Thanks for your help Cian! I think the real problem was that IE puts margins inside the dimensions of a layer, where as Nestcape and Opera put them on the outside. I've now found a way round the problem by using two layers on top of each other, and solved the other problem by adjusting the...
  18. serpento

    I've started making a website using

    I've started making a website using CSS at the following address: http://www.hyperhive.com/test/ In IE it displays just how I want it, but I also want my website to be compatible with Netscape 6 and 7 and Opera. With these browsers there are two problems: * The absolute positioned <DIV> tags...
  19. serpento

    $_SERVER in Perl?

    Thanks, but %ENV doesn't seem to have the REDIRECT_ variables I'm looking for. Is it possible to access these in Perl? -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.
  20. serpento

    Run Perl script from Perl script?

    Thanks very much. Thats just what I was looking for. -Ed ;-) ________________________________ Destiny is not a matter of chance; it is a matter of choice.

Part and Inventory Search

Back
Top