develooper Front page | perl.perl5.porters | Postings from October 2003

Days in confusion

Thread Next
From:
Marcus Thiesen
Date:
October 17, 2003 18:05
Subject:
Days in confusion
Message ID:
200310171917.09362.marcus@thiesenweb.de
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Perl porters,

I know I'm quite confused, but after a whole day writing Java you get really 
confused. I wrote today:
	use strict;
	use Curses::UI;

	my Curses::UI $cui = new Curses::UI;

What would you expect to happen? The first thing actually happened was 
nothing. No error, to warining, plain nothing.
Then I tried 
	use strict;
	use Curses::UI;

	my Curses::UI $cui = new Curses::UI;
	print "!$cui!\n";

And again nothing happened. Quite interresting.
O.K. perl somehow bails out. Next try.
	use strict;
	use Curses::UI;
	print "Hello World";
	my Curses::UI $cui = new Curses::UI;
	print "!$cui!\n";
And again I got nothing. That's got me somehow confused.
The thing is, writing print "Hello World\n"; outputs it, so perl somehow 
decides to stop on this my line. It returns a false value on comman line, but 
gives no warning or error.

Is this expected behaviour?

Have fun,
	Marcus


- -- 
- ---------------------------------------------------------
|Marcus Thiesen                           ICQ# 108989768|
- ---------------------------------------------------------
|                   www.thiesenweb.de                   |
- ---------------------------------------------------------
  28A7 37CC AE2C BB6C D56D  8A3D E614 E56B 7546 75F2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/kCQT5hTla3VGdfIRAlRVAKDJuJECMkXB3gMmXd+Cj8vdVt1O9gCfQagV
8emy0uoyY+gprPvf6nN1+ic=
=u4A5
-----END PGP SIGNATURE-----

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About