开发手册 欢迎您!
软件开发者资料库

Parrot - 行动

Parrot操作 - 免费的SOAP XML-RPC Web服务教程和参考AJAX JavaScript J2EE ASP.NET VB.NET C#C ++ C Pro * C Makefile PERL Parrot Ruby JAVA J2EE CORBA BILLING CRM OM DLL PHP CGI MySQL PL / SQL SDLC CSS ASP DHTML闪。

您可以执行各种操作.例如,我们可以打印出寄存器或常量的内容:

set I1, 10print "The contents of register I1 is: "print I1print "\n"

以上说明将导致内容寄存器I1是:10

我们可以对寄存器执行数学运算:

# Add the contents of I2 to the contents of I1add I1, I1, I2# Multiply I2 by I4 and store in I3mul I3, I2, I4# Increment I1 by oneinc I1# Decrement N3 by 1.5dec N3, 1.5

我们甚至可以执行一些简单的字符串操作:

set S1, "fish"set S2, "bone"concat S1, S2       # S1 is now "fishbone"set S3, "w"substr S4, S1, 1, 7concat S3, S4       # S3 is now "wishbone"length I1, S3       # I1 is now 8