On Fri, 14 Sep 2001, siren jones wrote:
> What is happening here?
>
> $date = `/bin/date + %y%m%d`;
> print "$date";
>
> prints
> >20010914
> >
>
> But if I add:
>
> $a = chomp($date);
> print "$a";
>
>
> it prints
> >
Because you aren't using chomp the way it's supposed to be used. Try
this:
chomp($date);
print $date;
And see what you get.
Hint: chomp returns the number of characters chomped.
Please read the perldoc on chomp for more details on its usage.
-- Brett
http://www.chapelperilous.net/
------------------------------------------------------------------------
Rainy days and automatic weapons always get me down.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]