- or download this
$hash{'a'};
print exists $hash{'a'}?'yes':'no';
#no
- or download this
$hash{'a'}=1;
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
$hash{'a'}=$hash{'a'};
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
sub foo{$_[0]}
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#no
- or download this
sub foo{$_[0]=1}
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
sub foo{$_[0]=$_[0]}
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
sub foo{
for($_[0]){
...
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#no
- or download this
sub foo{
for($_[0]){
...
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
for($hash{'a'}){
}
print exists $hash{'a'}?'yes':'no';
#yes
- or download this
sub foo{
for($_[0]){
...
foo($hash{'a'});
print exists $hash{'a'}?'yes':'no';
#no