my $var = val if (..) doesn't work properly #3548
Comments
From madison@transmeta.comIf a variable is declared "my" and then conditional set with ------------------------- print "x: $x\n"; joe(); The first line declares the variable and then conditionally either sets You could argue that the "my" becomes part of the condition, so if Perl Info
|
From @pjscottAt 04:29 PM 3/9/01 -0800, madison@transmeta.com wrote:
This is well-known behavior and arguably not a bug. my() has compile-time
|
From @pjscottAt 05:18 PM 3/9/01 -0800, you wrote:
http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/1999-11/msg00723.html There's a thread on the topic itself at |
From [Unknown Contact. See original ticket]Lightning flashed, thunder crashed and Peter Scott <Peter@PSDT.com> whispered: *chuckle* -spp |
From @jhiOn Sat, Mar 10, 2001 at 02:10:13PM -0500, Stephen P. Potter wrote:
There are also lots of bugs that are just open because nobody hasn't
|
From [Unknown Contact. See original ticket]
... and there are also a lot of bugs that even not open, because nobody even Just joking. <!ENTITY Vadim REALLIFE "St.Petersburg, Russia"> |
From @pjscottAt 02:10 PM 3/10/01 -0500, Stephen P. Potter wrote:
Shucks, you go and spoil a perfectly good attempt to promulgate the Anyway, the other thread I mentioned demonstrated that at the very least |
From [Unknown Contact. See original ticket]
Fine enough, but then I claim that this is a bug: use strict; sub fu { Dave++ Dave Ljung Madison http://GetDave.com 415.922.2697 |
From @tamiasOn Mon, Mar 12, 2001 at 11:01:36AM -0800, David Madison wrote:
That is not correct. Please review the previous thread again. $bar is declared at compile time, but is not reset at runtime. Ronald |
From [Unknown Contact. See original ticket]On Fri, Mar 09, 2001 at 04:39:00PM -0800, Peter Scott wrote:
Is this actually documented anywhere? Or do we expected people to Michael |
From @simoncozensOn Tue, Mar 13, 2001 at 11:41:21AM +0000, Michael Stevens wrote:
We expect people not to do things that don't make sense, and not to be |
From @AbigailOn Tue, Mar 13, 2001 at 12:58:47PM +0000, Simon Cozens wrote:
I don't think it makes sense to tell people that what they did doesn't It would be very nice if p5p (or the pumpking, or Larry (if he's around)) A "what you did doesn't make sense" is less than useful, and not very Abigail |
From @jhiOn Tue, Mar 13, 2001 at 08:11:07PM +0100, abigail@foad.org wrote:
Well, I think "my ... if 0" is a bug. Well, not a bug as in
|
From @AbigailOn Tue, Mar 13, 2001 at 01:13:35PM -0600, Jarkko Hietaniemi wrote:
Can I then suggest we officially declare this as deprecated and that Abigail |
From @jhiOn Tue, Mar 13, 2001 at 08:42:05PM +0100, abigail@foad.org wrote:
I will integrate doc/parser-lexical-warning patches to that effect. |
From @sciuriusabigail@foad.org writes:
This reminds me... Can someone please turn the >3 args open into a syntax / run time open (FH, "-|", "deleteallfiles", "-tempfilesonly") still silently calls the "deleteallfiles" program without passing the -- Johan |
From [Unknown Contact. See original ticket]Johan Vromans <jvromans@squirrel.nl> writes:
It is on the list. Patches welcome.
|
From @gbarrOn Tue, Mar 13, 2001 at 01:13:35PM -0600, Jarkko Hietaniemi wrote:
Let me just say I agree, so some extent. And that I have spent many hours For instance ($x, my $y) = (...) if 0; makes a very different op tree, and even ($x, my $y) = (...) while (...); is even more weird. In the end I took the approach that if you cannot locate and fix Graham. |
From @nwc10On Tue, Mar 13, 2001 at 08:11:07PM +0100, abigail@foad.org wrote:
And no use to anyone crafting cryptic one liners, as Abigail^Wthey won't Nicholas Clark |
Migrated from rt.perl.org#6003 (status was 'resolved')
Searchable as RT6003$
The text was updated successfully, but these errors were encountered: