S <> wrote:
> Walter Roberson wrote:
> > What exactly does Usage() compute? Is it possible that Usage() is
> > returning the 1 ? It should return a list, but perhaps along the
> > way you have an accidental scalar context that is converting a
> > list containing a single string into scalar(@thatlist) which
> > would be 1 ?
> >
> sub Usage
> {
> print <<HELP;
>
> $0 -s <server> | -v | -a | -m
>
> HELP
> }
Well, there you go then: print() returns 1 if the print succeeds. You
probably meant
return <<HELP;
....
Ben
--
It will be seen that the Erwhonians are a meek and long-suffering people,
easily led by the nose, and quick to offer up common sense at the shrine of
logic, when a philosopher convinces them that their institutions are not based
on the strictest morality. [Samuel Butler, paraphrased]