由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
BuildingWeb版 - [转载] Perl for programmers(2): Assignment of variables
相关主题
Javascript Eval() and IERe: Coldfusion到底是干吗的?
[转载] Perl for programmers(1): Variables in Perl[转载] Perl for programmers(10): A template for CGI file
How to set a global variable in three web pages?[转载] Perl for programmers(9): subroutines
???post variables in php (or javascript)[转载] Perl for programmers(8): string operation(pattern matching)
quesiton about PHP! waiting online[转载] Perl for programmers(7): string operation
请问ASP高手[转载] Perl for programmers(6): characters in string
Ok leRe: 请问ASP高手[转载] Perl for programmers(5): flow control
php session variable问题(有包子)[转载] Perl for programmers(4): Logical operation
相关话题的讨论汇总
话题: perl话题: assignment话题: variables话题: arr
进入BuildingWeb版参与讨论
1 (共1页)
s***k
发帖数: 23
1
【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(2): Assignment of variables
发信站: The unknown SPACE (Tue May 23 14:59:26 2000) WWW-POST
$n=43;
$n1=4.3;
$n2=4.3e12;
$str="djfk";
$str1="n is $n.";
Note: Use single quote unless you want to interpret some
variables
$str2='n is 43.';
$n2=$n1*$n;
@arr=("1","2","3","4");
($n1,$n2,$n3,$n4)=@arr;
$arr[0]="1";
sort @arr; #output ("1","2","3","4");
$arr1="0","7";
sort @arr,@arr1; #output ("0","1","
1 (共1页)
进入BuildingWeb版参与讨论
相关主题
[转载] Perl for programmers(4): Logical operationquesiton about PHP! waiting online
[转载] Perl for programmers(11): package design in perl请问ASP高手
help: personal web serverOk leRe: 请问ASP高手
浏揽协议php session variable问题(有包子)
Javascript Eval() and IERe: Coldfusion到底是干吗的?
[转载] Perl for programmers(1): Variables in Perl[转载] Perl for programmers(10): A template for CGI file
How to set a global variable in three web pages?[转载] Perl for programmers(9): subroutines
???post variables in php (or javascript)[转载] Perl for programmers(8): string operation(pattern matching)
相关话题的讨论汇总
话题: perl话题: assignment话题: variables话题: arr