in reply to getopts help

See Getopt::Std which uses (AFAIK) the same syntax. In your case it means that $opt_g will be set to whatever argument g had. Same for s,n and b.