I escape it out of habit as a visual reminder to me that it is the literal period character so that when I come back to the code I know right away what I meant. Good eye you have:\
LOL get a clue, the quote I left is exactly that... a quote from someone
else.
I don't think php is "training wheels without the bicycle" I think php
is a "bike with training wheels" it will help keep you from falling down
but everyone can see that you are just learning to ride.
There will always be a holy war over which language is better, you are not
even worth drawing my sword. A simple look at your comments reveals this.
if ($php eq 'Personal Home Page') {
$code = 'good language to learn basics';
}else{
$code =~ s#(slashdot.org)#/.#;
}
also the substitution could have been writen as:
$code =~ s#slashdot\.org#/.#;
no need to put the word into $1 if i'm not going to use it.
PHP is "training wheels without the bicycle".
Use it if mod_perl isn't available, but if you have a choice, learn something with power rather than scaffolding.
Ahmen
Dude, where's my Unix!
I escape it out of habit as a visual reminder to me that it is the literal period character so that when I come back to the code I know right away what I meant. Good eye you have :\
LOL get a clue, the quote I left is exactly that... a quote from someone else.
I don't think php is "training wheels without the bicycle" I think php is a "bike with training wheels" it will help keep you from falling down but everyone can see that you are just learning to ride.
There will always be a holy war over which language is better, you are not even worth drawing my sword. A simple look at your comments reveals this.
To funny... the corrected code is below
if ($php eq 'Personal Home Page') {
$code = 'good language to learn basics';
}else{
$code =~ s#(slashdot.org)#/.#;
}
also the substitution could have been writen as:
$code =~ s#slashdot\.org#/.#;
no need to put the word into $1 if i'm not going to use it.
PHP is "training wheels without the bicycle".
Use it if mod_perl isn't available, but if you have a choice, learn something with power rather than scaffolding.
Ahmen
I'm not sure if its still true but the last time I checked /. uses mod_perl and template toolkit to run most of the show.
if ($php == 'Personal Home Page') {
$code = 'good language to learn basics';
}else{
$code =~ s#(slashdot.org)#/.#;
}