如何在perl中赋值

时间:2013-09-09 10:45:02

标签: perl

获取用户个人资料详情

$response = $client->fql->query( query => 'SELECT name, email, birthday, username, first_name, last_name, pic FROM user WHERE uid = me()');

之后打印语句如:

print join "\n Name:",  sort map { $_->{name} } @$response;
print "</br>\n";
print join "\n Email:",  sort map { $_->{email} } @$response;
print "</br>\n";

sort map { $_->{email} } @$response; 

我想将此分配给一个变量并比较和检查值。 如何将值赋给变量并存储?

1 个答案:

答案 0 :(得分:1)

“如何在perl中分配值?”

更多信息。在http://perldoc.perl.org/perlop.html#Assignment-Operators

“...比较并检查值”

更多信息。在http://perldoc.perl.org/perlop.html#Smartmatch-Operator

“......并存储?”

 o_O