Liste des Groupes | Revenir à cu shell |
Muttley@DastartdlyHQ.org ignorantly rambled:On Thu, 10 Oct 2024 16:09:49 +0100>
Rainer Weikusat <rweikusat@talktalk.net> boring babbled:Muttley@DastartdlyHQ.org writes:>Its syntax is also a horrific mess.>
Which means precisely what?
Far too much pointless punctuation. An interpreter shouldn't need the vartypesignified by $ or @ once its defined, it should already know.>
For the purpose of variable declaration, how's the interpeter going to
convenient, because the same name can be reused for a variable of a
different type, eg:
>
my ($data, @data, %data);
>
$data = rand(128);
@data = ($data, $data + 1);
%data = map { $_, 15 } @data;
it's also convenient to type and easy to read due to being concise.
and returns the next line read from this file handle. In list context,
it returns all lines in the file.
>
Eg, this a poor man's implementation of cat:
>
perl -e 'open($fh, $_) and print <$fh> for @ARGV'
Please don't enumerate everything else on this planet you also don't
really understand as that's probably going to become a huge list. ;-)
Les messages affichés proviennent d'usenet.