From: Rob Dixon <[EMAIL PROTECTED]> > I have said several times that the shortcut behaviour of the logical operators > is ugly and unfamilar to non-Unix users (yes, I know C does it, but that is a > deficiency)
Beg your pardon??? Or maybe ... what exactly do you mean by "shortcut behaviour"? You mean you would expect and even, god forbid, want the language to evaluate all expressions even if the result is already known the way the bloody braindead Visual Basic does in While Not rstFoo.EOF and rstFoo.Fields("Section").Value = 1 I do hope not! > and I can think of no excuse at all for naming the function 'grep'. Agreed in this one. > If I had things my way there would never be any use of Perl as a command-line > tool. To use it as one is to clip its wings and invite the prejudice of the > many > platforms where that simply will not work. Again, beg your pardon? There's nothing forcing you to use Perl as a command-line tool. I don't see how could the POSIBILITY of using something in some special way (apart from all the other ways you can use it) "clip its wings". Preventing that use could. > A lot of work has gone into porting > historical behaviour to most conceivable hosts, in particular the fabrication > of > a 'fork' call where no such native concept exists. Also -w has been superseded > with 'use warnings', but nothing is so far in place to represent the -n and -p > qualifiers, and they must be considered a legacy. -n is LINE: while (<>) { ... # your program goes here } -p is LINE: while (<>) { ... # your program goes here } continue { print or die "-p destination: $!\n"; } how is there nothing in place to represent it? > There is no reason any more to write Perl programs on the command line, and > the > sooner we stop trying to force it to be a utility the quicker the world will > adopt it as a language. There is a lot of reasons and there is no relation between Perl being also a command line utility and its adoption as a language. I do not use Perl like that too often, but I do not see any reason to have to write the two statements I need to run into a file so that I coud pass them to perl for execution. Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/