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.
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 =...
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...
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.
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...
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...
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.
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 ;-)...
Thanks Paul, thats solved my problem brilliantly! Have a star.
-Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
If I have the name of a variable stored in another variable, can I read the contents of the variable? EG:
$nameOfVariable = "foo";
$foo = "contents of variable that I want to read";
# Now, supposing that $foo could be anything,
# eg. $sweetcorn, is it possible to...
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.
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 ;-)...
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...
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.
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 ;-)
________________________________...
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...
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...
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.
Thanks very much. Thats just what I was looking for.
-Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.