- or download this
if ( &testA || &testB ) { print "IF\n" ;}
sub testA { print "AAA\n" ; return( 1 ) ;}
sub testB { print "BBB\n" ; return( 1 ) ;}
- or download this
if ( -s $file || $file =~ /\.new$/ || $file eq 'foo ') { ;}
- or download this
use B::Deparse;
...
print "aaa \" $var bbb\n" ;
return( 'foo' ) ;
}
- or download this
$var = "foo" ;
$var = "$var,bar" ;
- or download this
$var = "foo" ;
$var .= ",bar" ;
- or download this
$var += 10 ; # for $var = $var + 10 ;
$var -= 10 ; # for $var = $var - 10 ;
$var /= 10 ; # ...
$var *= 10 ; # ...
- or download this
$var = "foo$var" ;
- or download this
substr($var,0,0) = "foo" ;
- or download this
while(1){
my $var = &foo() ;
...
}
- or download this
my $var ;
while(1){
$var = &foo() ;
...
}
- or download this
$data = 'foo' x (1024*1024) ;
&test(\$data) ;
...
my ( $datarf ) = @_ ;
if ( $$datarf =~ /foo/s ) { print "bar\n" ;}
};
- or download this
$rf_s = \$scalar ;
$rf_a = \@array ;
$rf_h = \%hash ;
- or download this
$$rf_s .= 'foo' ;
...
my $Value = $$rf_h{$Key} ;
print "$Key = $Value\n" ;
}
- or download this
open (FLHD,"$0") ;
my $fl_data = join('' , <FLHD>) ;
- or download this
open (FLHD,"$0") ;
my $fl_data ;
1 while( sysread(FLHD, $fl_data , 1024*8 , length($fl_data) ) ) ;
- or download this
open (FLHD,"$0") ;
while (my $line = <FLHD>) {
my ($x , $y , $z) = split("::" , $line) ;
}
- or download this
$foo = '123' ;
$bar = undef ;
...
$bar = 102030 ;
print "foo: $foo\n" ;
- or download this
# To have $bar , @bar and %bar from *foo ;
*bar = \$foo ;
...
# For packages:
*bar:: = *foo:: ; # you have now main::bar linked to main::foo
- or download this
ENGLISH
Nothing that was will be
...
Há tanta vida lá fora,
Aqui dentro, sempre,
Como uma onda no mar.