List Info

Thread: use MyApp without console output in script?




use MyApp without console output in script?
user name
2006-11-29 21:32:06
Hi

if I

use MyApp;

in a script, is there a way to stop all the usual console
out that happens ?

cheers

-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
use MyApp without console output in script?
user name
2006-11-29 21:49:30
> use MyApp;
>
> in a script, is there a way to stop all the usual
console out that
> happens ?

export CATALYST_DEBUG=0 ?

The problem is that the mere act of require()-ing MyApp
calls
MyApp->setup, which unleashes a whole sequence of events
that you may or
may not want.  I guess my question for you is, what are you
trying to do?

Regards,
Jonathan Rockway

-- 
package JAPH;use Catalyst
qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca
Rockway][$_].[split //,
";$;"]->[$_].q; ;for
1..4;$,=~s;^.;;;$,});$;->setup;

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
use MyApp without console output in script?
user name
2006-11-29 21:56:38
Daniel McBrearty wrote:
> Hi
> 
> if I
> 
> use MyApp;
> 
> in a script, is there a way to stop all the usual
console out that 
> happens ?

Take -Debug out of the use line and enable it selectively
like a sane person.

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
use MyApp without console output in script?
user name
2006-11-29 23:06:07
ahhh ... yes. silly me.

(it was only the "sane" bit that was hard to do
... ;)


On 11/29/06, Matt S Trout <dbix-classtrout.me.uk> wrote:
> Daniel McBrearty wrote:
> > Hi
> >
> > if I
> >
> > use MyApp;
> >
> > in a script, is there a way to stop all the usual
console out that
> > happens ?
>
> Take -Debug out of the use line and enable it
selectively like a sane person.
>
> _______________________________________________
> List: Catalystlists.rawmode.org
> Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
> Dev site: http://dev.catalyst.per
l.org/
>


-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
www.engoi.com : the multi - language vocab trainer
BTW : 0873928131

_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )