change of plan :P
I need help with the regular expressions instead as I have tweaked my script
if $cookie =~ /^cookie(.)\/(.)\/(.)/
$cookietype="$1.$2.$3"
so if my $cookie is cookie1/0/0
my $cookietype will be 1.0.0
Problem is, if my $cookie is cookie1/0,
it doesnt match any of the pattern so it'll set the value to 0 by default
(defined in my final else statement).
I added elsif statement as below
elsif $cookie =~ /^cookie(.)\/(.)/
$cookietype="$1.$2"
and the value became 0, as if it doesnt match the pattern
please help.