On Tue, Feb 21, 2012 at 4:33 PM, Bill McCormick <[email protected]>wrote:

> Peter Rabbitson wrote, On 2/21/2012 9:05 AM:
>
>> Something like:
>>
>> NYTPROF=clock=2 perl -d:NYTProf -I<inclist>  ./recipe-test-DBIx.pl
>> nytprofhtml -l<same inclist like above, important>
>>
>>  Can I assume that NYTPROF=clock=2 is an environment var setting? So then
> ...
>
> $export NYTPROF=clock=2; perl -d:NYTProf -I<inclist> ./recipe-test-DBIx.pl
>

A standard shell shortcut for setting an environment variable for the sake
of one process is to specify the var-setting first and then roll right into
your command. Here, NYTPROF=blah sets the environment variable NYTPROF for
the duration of the perl command, and then it's gone again.

   NYTPROF=blah perl yadda
Easier than typing
   export NYTPROF=blah
   perl yadda
...and also restores your shell environment to its original untarnished
state.

-- 
"We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about." -- Albert Einstein
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to