package PackageName;
use self;
use strict;
my @args;
sub new {
@args = args;
for (@args) {
blah~!
}
bless {}, self;
}
1;
self.pm++
package PackageName;
use self;
use strict;
my @args;
sub new {
@args = args;
for (@args) {
blah~!
}
bless {}, self;
}
1;

1.233, 2E-3, 3e45
# exponential float
123_123_234
# integer with underscore
0377, 0xff, 0b1111
# octal => 0, hexadecimal => 0x, binary => 0b
"hello,"."world!"
# concatenate with .
"hello" x 3
# repeat 3 time with x
"20fred" * 3
# ignore string when transform
$str = $str . "blah"; === $str .= "blah";
$int = $int ** 3; === $int **= 3;
# binary assignment operator
${word}blah~
# insert variable with dereference brace
eq == | ne != | < lt | > gt | <= le | >= ge
# string comparison operator
# return with \n at line end
defined($var)
# return true or false
use warnings;
use diagnostics;#!/usr/bin/env perl
use warnings;
use Data::Dumper;
$a = ["a", "b", "c", { "key" => "value" } ];
print Dumper $a;#!/usr/bin/env ruby
a = ["a", "b", "c", { "key" => "value" } ]
puts a.inspect<VirtualHost *>
ServerName cpan.yourdomain
DocumentRoot /var/www/CPAN
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/CPAN/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/cpan-error.log
LogLevel warn
CustomLog /var/log/apache2/cpan-access.log combined
ServerSignature On
</VirtualHost>
username: yourtwitteraccount在 shell 下 twittershell -c ~/.twittershell.yml 就進入該 shell, help 可以得到幫助。
password: yourtwitterpassword
require 'jcode',不過沒有效果,作者也表示暫時不會加入 unicode 支援。
$KCODE = 'u'
my $upload = CGI::UploadEasy->new(-uploaddir=>"上傳資料夾",-maxsize=>"負數視為不設限,單位為KB",-tempdir=>"暫存資料夾");