Don't understand peice of code ?

2005-08-13 Thread Michael Gale
Hello, I am going a perl file called snacktime.pl I got from: http://www.planb-security.net/wp/snacktime.html I do not understand how the "shift and die" line works in the following code section: --snip-- # Filling in all the options. my %options; getopts('hvVmt:p:f:w:D:s:P:I:',\%options) |

Re: Don't understand peice of code ?

2005-08-13 Thread John W. Krahn
Michael Gale wrote: > Hello, Hello, > I am going a perl file called snacktime.pl I got from: > > http://www.planb-security.net/wp/snacktime.html > > I do not understand how the "shift and die" line works in the following > code section: > > shift and die "Missing some options. Try $0 -h for he