Re: subroutine simultaneousness

2008-02-18 Thread MK
okay, this is definitely a Tk or GUI issue, since incorporating a for real "print" (ie. to STDOUT) statement does come out in proper sequence. Does anyone know if there is a filehandle other than STDOUT for tk requests? The simplest version of the problem: use IO::Handle; sub tmptest {

Re: subroutine simultaneousness

2008-02-18 Thread MK
PROBLEM SOLVED on comp.lang.perl.tk: $MW->update; # whenever you want the screen updated On 02/18/2008 09:46:51 AM, MK wrote: okay, this is definitely a Tk or GUI issue, since incorporating a for real "print" (ie. to STDOUT) statement does come out in proper sequence. -- To unsubsc

Re: subroutine simultaneousness

2008-02-18 Thread David Moreno
On Feb 17, 2008 3:48 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > use IO::Handle; > STDOUT->autoflush; > > to the start of your program. What's the difference from this to setting $| to true? -- David Moreno - http://www.damog.net/ Yes, you can.

Dependancies

2008-02-18 Thread Mark Wagner
Is there any easy way to get a list of all modules loaded by a Perl script? -- Mark Wagner -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 6:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: > Mark Wagner wrote: > > Is there any easy way to get a list of all modules loaded by a Perl script? > > $ perl -le' use Time::Local; print for keys %INC ' > warnings/register.pm > Carp.pm > vars.pm > strict.pm > Exporter.pm > consta

Re: subroutine simultaneousness

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 11:17 AM, David Moreno <[EMAIL PROTECTED]> wrote: > > On Feb 17, 2008 3:48 PM, Rob Dixon <[EMAIL PROTECTED]> wrote: > > > use IO::Handle; > > STDOUT->autoflush; > > > > to the start of your program. > > > What's the difference from this to setting $| to true? snip In this speci

Re: Dependancies

2008-02-18 Thread John W. Krahn
Mark Wagner wrote: Is there any easy way to get a list of all modules loaded by a Perl script? $ perl -le' use Time::Local; print for keys %INC ' warnings/register.pm Carp.pm vars.pm strict.pm Exporter.pm constant.pm Time/Local.pm warnings.pm Config.pm integer.pm John -- Perl isn't a toolbox

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: snip > > eval "use SomeModule" if $ENV{USE_SOMEMODULE}; > > > > or the sort of tricks that the DBI and other factory classes use. > > What would be the problem with that? > > $ perl -le 'eval "use Time::Local"; print for keys %I

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Feb 18, 2008 6:57 PM, John W. Krahn <[EMAIL PROTECTED]> wrote: Mark Wagner wrote: Is there any easy way to get a list of all modules loaded by a Perl script? $ perl -le' use Time::Local; print for keys %INC ' Of course, this assumes the author did not do anything like

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Chas. Owens wrote: On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: snip eval "use SomeModule" if $ENV{USE_SOMEMODULE}; or the sort of tricks that the DBI and other factory classes use. What would be the problem with that? $ perl -le 'eval "use Time::Local"; print for ke

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 9:08 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Chas. Owens wrote: > > On Feb 18, 2008 7:52 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > > snip > >>> eval "use SomeModule" if $ENV{USE_SOMEMODULE}; > >>> > >>> or the sort of tricks that the DBI and other factory class

Object Oriented Perl

2008-02-18 Thread Robert Hicks
Is Damian Conway's book still the best way to get a good comprehensive education about doing OO in Perl? Robert -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Dependancies

2008-02-18 Thread Gunnar Hjalmarsson
Okay, thanks, now I understand what you mean. Chas. Owens wrote: ... to detect what dependencies the code has Even if dependencies is the subject of this thread, it's not really what the OP asked about. He simply asked for an "easy way to get a list of all modules loaded by a Perl script".

Re: Dependancies

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 10:34 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Okay, thanks, now I understand what you mean. > > Chas. Owens wrote: > > ... to detect what dependencies the code has > > Even if dependencies is the subject of this thread, it's not really what > the OP asked about. He simpl

Re: Object Oriented Perl

2008-02-18 Thread Chas. Owens
On Feb 18, 2008 10:50 PM, Rodrick Brown <[EMAIL PROTECTED]> wrote: > Just use Python *ducks* snip And which of Python's object systems should I use? *ducks as well* -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: [EMA

Re: Object Oriented Perl

2008-02-18 Thread yitzle
On Feb 18, 2008 10:50 PM, Rodrick Brown <[EMAIL PROTECTED]> wrote: > Just use Python *ducks* > -- > Rodrick R. Brown > http://www.rodrickbrown.com /me gets out the hunting rifle... :P -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.per

Re: Object Oriented Perl

2008-02-18 Thread Rodrick Brown
Just use Python *ducks* On Feb 18, 2008 10:17 PM, Robert Hicks <[EMAIL PROTECTED]> wrote: > Is Damian Conway's book still the best way to get a good comprehensive > education about doing OO in Perl? > > Robert > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [