#!/usr/bin/perl -wstudents qw/Doreen Oskar Elin Sangeet Malin/;&next_student;&next_student;sub next_student {$i;print "the next student is $students[$i]\n";
}the next student is Oskar
the next student is Elin 转载于:https://www.cnblogs.c…
转载自
http://kb.cnblogs.com/page/194742/★ 先说一个通俗的例子考虑到证书体系的相关知识比较枯燥、晦涩。俺先拿一个通俗的例子来说事儿。◇ 普通的介绍信想必大伙儿都听说过介绍信的例子吧?假设 A 公司的张三先生要到 B 公司去拜访,但是 B 公司的所…
function create() {const a 100return function() {console.log(a);}
}
const fn create()
const a 200;
fn() //100function print(fn) {let a 200;fn();
}
let a 100function fn() {console.log(a)
}
print(fn)//100