[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lojban-beginners] "<>" Re: Re: klingon swears
In a message dated 9/1/2009 19:58:08 Eastern Daylight Time, vonunov@gmail.com writes:
The only diamond operator (<>) that I know of is in Perl, and there it is
used to indicate that the value it represents will be provided by the user
from STDIN. Example:
my $foo = <>;
print <>;
When the script runs, user must type something which will be assigned to
$foo and printed.
!= is simply "not equals" operator, acting like the slashed equals you
often see in written maths, and I imagine this is what Michael meant.
--
Jack Aviado
I see. Before Perl, the "diamond" operator ("<>") was used in languages like Basic to mean "is not equal to". It's still used that way in MS Excel and Open Office Calc filters.
So it really is the same thing as Perl "!=". The Perl usage of "<>" is the 'non-standard' one.
stevo