Hi,
I have a problem with if loop in the IPL. The following code never goes inside the if loop. userrole array has two roles,author and editor.
my $author="author";
my
@userrole=`iwaccess roles-of-user $area -user $user`;
foreach $node(
@userrole){if($node eq $author)
{
print($node);
}
}
Can anyone please help me in solving this issue.
Thanks in advance.