[32890] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4168 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Mar 8 21:09:32 2014

Date: Sat, 8 Mar 2014 18:09:08 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Sat, 8 Mar 2014     Volume: 11 Number: 4168

Today's topics:
    Re: cpan <rweikusat@mobileactivedefense.com>
        Running a script as if it were a Windows executable? <alektrishan@gmail.com>
    Re: Running a script as if it were a Windows executable <john@castleamber.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Sat, 08 Mar 2014 22:43:49 +0000
From: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Subject: Re: cpan
Message-Id: <87vbvotioq.fsf@sable.mobileactivedefense.com>

greymausg <maus@mail.com> writes:
> I start CPAN, and enter, say, "i /^Text/". How do 
> I stop the deluge of answers, as in 'more'?

The CPAN shell supports | and > with their 'usual' (shell) meaning you
can do a

i /^Text/ | less

in order to pipe the result to the less program (according to the
documentation, there has to be a space in front of the |).

NB: In contrast to the documentation, at least the CPAN shell I used for
testing didn't ignore SIGPIPE which meant that it suddenly exited when
terminating the pager before it read all of the output. An explicit

! $SIG{PIPE} = 'IGNORE'

could be used to work around that.


------------------------------

Date: Sat, 08 Mar 2014 19:23:29 -0500
From: Alek Trishan <alektrishan@gmail.com>
Subject: Running a script as if it were a Windows executable?
Message-Id: <lfgca0$7no$1@dont-email.me>

I have a perl script that I can run by opening a command window and typing
	perl.exe myscript.pl

I would like to create an "executable" file (but not a desktop shortcut) 
that, when clicked on, would execute that command.

Can anyone help?

Thanks.


------------------------------

Date: Sat, 08 Mar 2014 19:59:55 -0600
From: John Bokma <john@castleamber.com>
Subject: Re: Running a script as if it were a Windows executable?
Message-Id: <87txb82ktg.fsf@castleamber.com>

Alek Trishan <alektrishan@gmail.com> writes:

> I have a perl script that I can run by opening a command window and typing
> 	perl.exe myscript.pl
>
> I would like to create an "executable" file (but not a desktop
> shortcut) that, when clicked on, would execute that command.
>
> Can anyone help?

PAR::Packer has the pp tool which packs perl (the exe) and your script
and modules into a single exe file. This file you can also copy to a
different computer and run. Since it includes perl the resulting exe is
quite large (over 1 MB).

No idea if there's something better, but I've used pp for years and most
of the time it just works.

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/        Perl Consultancy: http://castleamber.com/
Perl for books:    http://johnbokma.com/perl/help-in-exchange-for-books.html


------------------------------

Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>


Administrivia:

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

Back issues are available via anonymous ftp from
ftp://cil-www.oce.orst.edu/pub/perl/old-digests. 

#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V11 Issue 4168
***************************************


home help back first fref pref prev next nref lref last post