ACIL FM
Dark
Refresh
Current DIR:
/home/.cpan/build/Sub-Uplevel-0.2800-0/examples
/
home
.cpan
build
Sub-Uplevel-0.2800-0
examples
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
uplevel-demo.pl
538 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/.cpan/build/Sub-Uplevel-0.2800-0/examples/uplevel-demo.pl
use strict; use warnings; use Sub::Uplevel; # subroutine A calls subroutine B with uplevel(), so when # subroutine B queries caller(), it gets main as the caller (just # like subroutine A) instead of getting subroutine A sub sub_a { print "Entering Subroutine A\n"; print "caller() says: ", join( ", ", (caller())[0 .. 2] ), "\n"; print "Calling B with uplevel\n"; uplevel 1, \&sub_b; } sub sub_b { print "Entering Subroutine B\n"; print "caller() says: ", join( ", ", (caller())[0 .. 2] ), "\n"; } sub_a();
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply