I understand that you cannot change CGI->param vars , but I thought the @_ collection was changeable ie
But I have found trying to do a text comparison wasn't working...
it only works if I make a variable = the @_ value first like so
What am I missing here?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
Code:
$_[0] = "My Value";
But I have found trying to do a text comparison wasn't working...
Code:
if($_[1] =~ /c/gi) { do whatever;}
it only works if I make a variable = the @_ value first like so
Code:
my $var = $_[1];
if($var =~ /c/gi) { do whatever;}
What am I missing here?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!