[26540] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 8686 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Nov 18 18:05:40 2005

Date: Fri, 18 Nov 2005 15:05:10 -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           Fri, 18 Nov 2005     Volume: 10 Number: 8686

Today's topics:
        clubbing data file in program itself <VSRawat@Invalid.none>
    Re: clubbing data file in program itself <8273grkci8q8kgt@jetable.net>
    Re: FAQ 8.34 I {changed directory, modified my environm <8273grkci8q8kgt@jetable.net>
        How to download just the html help of activeperl <VSRawat@Invalid.none>
    Re: How to use GUI <VSRawat@Invalid.none>
    Re: How to use GUI: Win32::GUI If You Need Accessibilit <VSRawat@Invalid.none>
    Re: Win32::GUI:  Issues, Accessibility, Clipboard (part <vtatila@mail.student.oulu.fi>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: 18 Nov 2005 19:05:15 +0100
From: "V S Rawat" <VSRawat@Invalid.none>
Subject: clubbing data file in program itself
Message-Id: <xn0e9vg9jw6k1h009@xananews>


I have not yet tried perl2exe but thinking about that.

My font conversion program reads the font mappings from an upper
ascii file (0-256) having 300 or more lines. Then, it reads a
input file and converts that to output file.

If I run perl2exe to convert my .pl to .exe, what happens to my
data file (say font1.map)?

Or, is there any method that I can club that file within the
 .exe itself during conversion, so that I don't have to supply
separate file. And, the .map file is one each for each font, so
there will be too many and might confuse the users. They might
fiddle with it and then complain that it is not working.

So, how to I prevent separate data file (.map) and club it
within the .exe.

I can't keep them within the program as there will be 300 or
more line each for each font.

Any other method of clubbing them, say, in a .zip or .rar file
so that they remain in a single bunch and a novice user is not
able to make that out, and I can read them opening the zip/ rar
within the program.

If all this is not in "perl" style, please guide me to the right
style.

TIA.
-- 
Rawat



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

Date: Fri, 18 Nov 2005 12:30:40 -0600
From: Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
Subject: Re: clubbing data file in program itself
Message-Id: <t1132338461.p3995.r610677283@lars.jetable.net>

> Any other method of clubbing them, say, in a .zip or .rar file
> so that they remain in a single bunch and a novice user is not
> able to make that out, and I can read them opening the zip/ rar
> within the program.

"Clubbing" is a term I've never heard before, but I understand what
you're looking for.

You can use Perl's Archive::Zip and Archive::Zip::MemeberRead to access
files in a Zip archive using the same mechanisms you use to read files
on disk.  From http://lookleap.com/search.cpan.org/a1:

    $zip = new Archive::Zip("file.zip");
    $fh  = new Archive::Zip::MemberRead($zip, "subdir/abc.txt");
    while (defined($line = $fh->getline()))
    {
      print $fh->input_line_number . "#: $line\n";
    }

-- Lars

-- 
Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
This email address will expire on 2005-11-23.



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

Date: Fri, 18 Nov 2005 16:06:46 -0600
From: Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
Subject: Re: FAQ 8.34 I {changed directory, modified my environment} in a perl script.  How come the change disappeared when I exited the script?  How do I get my changes to be visible?
Message-Id: <t1132351568.p3995.r1842841957@lars.jetable.net>

>        Win32
>           Exceptionally easy to do.

I'm also curious.  How would this work in Windows?

-- Lars

-- 
Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
This email address will expire on 2005-11-23.



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

Date: 18 Nov 2005 19:06:04 +0100
From: "V S Rawat" <VSRawat@Invalid.none>
Subject: How to download just the html help of activeperl
Message-Id: <xn0e9vg2jvwgkj008@xananews>

A month ago, I had mentioned that I inadvertently ended up
downloading 5.8 of Activeperl which does not have html help
though perldoc is there.

Someone had mentioned in this ng that activeperl is now onto
5.8.7 or something like that, which provides msi file which
installs and has excellenet html help.

If it is so, is there any url from where I can download and
install just the html help part of activeperl (whichever version
available), so that I can install and access that on my system.
It might not fully represent my 5.8, but it will still be useful.

TIA.
-- 
Rawat


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

Date: 18 Nov 2005 19:04:37 +0100
From: "V S Rawat" <VSRawat@Invalid.none>
Subject: Re: How to use GUI
Message-Id: <xn0e9vfuvvla9y006@xananews>

Bob Walton wrote:

> V S Rawat wrote:
> 
> > It is in continuation of my Hindi to Unicode font
> > transliteration program that is successfully working in perl.
> > 
> > The program runs from msdos prompt. It reads a input file and
> > converts the contents to give an output file in utf8
> > encoding.
> > 
> > However, now I want to do away with dos part, and want it to
> > work under winxpsp2.
> > 
> > I want it to have a input text box in which I would paste the
> > contents from clipboard (text copied to clipboard from some
> > other software).
> > 
> > I will press a key to convert, and it should give me the
> > converted rtf8/unicode text in another text box which I
> > should be able to copy to clipboard to take to another
> > software and paste there.
> > 
> > I am totally nil in perl's GUI. I have used GUI in Java so I
> > guess I know some concepts.
> > 
> > Could someone guide me step by step as to which part of
> > perldoc to read, which sites to visit for samples/ source
> > codes/ tutorials on GUI, etc?
> > 
> > Have activeperl 5.8.
> 
> It should be pretty easy to do this in Perl/Tk.  Tk is a truly
> marvelous GUI package.  If Perl/Tk isn't already installed on
> your system (I think it comes with current ActiveState
> distributions, but I'm not certain of that), use PPM to
> install it.
> 
> perldoc tk
> 
> Also see the book "Learning Perl/Tk" by Nancy Walsh, O'Reilly.

Thanks for both the replies.

perldoc tk did present the help in dos mode on my box. Does it
mean that tk is already installed?

Could someone please jot down one or two line perl program for
me just to run to test whether tk is installed or not.

-- 
Rawat


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

Date: 18 Nov 2005 19:04:32 +0100
From: "V S Rawat" <VSRawat@Invalid.none>
Subject: Re: How to use GUI: Win32::GUI If You Need Accessibility
Message-Id: <xn0e9vfzkvs3u9007@xananews>

Veli-Pekka Tätilä wrote:

> V S Rawat wrote:
> > in continuation of my Hindi to Unicode font transliteration
> > program <snip> I want it to have a input text box in which I
> > would paste the contents from clipboard <snip>
> > I will press a key to convert, and it should give me the
> > converted rtf8/unicode text in another text box <snip>
> 
> Hi,
> I'd recommend you go with the Win32::GUI package if it
> supports unicode. Their home page is at:
> 
> http://sourceforge.net/projects/perl-win32-gui
> 
> The documentation can be found on-line, too:
> 
> http://jeb.ca/perl/win32-gui-docs/index.pl/home

I had Build 310 - Sep 04, 1997 of win32 but that did not had
unicode support so I downloaded activeperl which has unicode
support.

Could someone please mention which build the above mention
perl-win32 is and whether it has unicode support which is
essential for my work.

Otherwise it will be no fun to download so many MBs and install
only to find that it doesn't have unicode support the way
activeperl has.

Hope someone is already having the above win32-perl and would
drop a line to help me.

Thanks.
-- 
Rawat


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

Date: Fri, 18 Nov 2005 21:34:40 +0200
From: "Veli-Pekka Tätilä" <vtatila@mail.student.oulu.fi>
Subject: Re: Win32::GUI:  Issues, Accessibility, Clipboard (partially OT)
Message-Id: <dllacq$f2m$1@news.oulu.fi>

A. Sinan Unur wrote:
> "Veli-Pekka Tätilä" <vtatila@mail.student.oulu.fi> wrote:
>> Rob wrote:
>>> That documentation is very old.  Updated (official) docs can be found
>>> at: http://perl-win32-gui.sourceforge.net/docs/
>> Hey, you saved my day by pointing this out.
> I got a 404 when I tried that page.
> http://perl-win32-gui.sourceforge.net/cgi-bin/docs.cgi
Thanks for the correction.
I thanked the original poster in advance planning to check out the actual 
link just a bit later. However, I trusted it would be a newer version as he 
said. I've noticed the docs are much more elaborate and up to date now. I'm 
also glad to discover most of the common dialogs are there, too. So it might 
be that you don't need the Win32::Fileop module for the common dialogs at 
least.

-- 
With kind regards Veli-Pekka Tätilä (vtatila@mail.student.oulu.fi)
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/ 




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

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:

#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc.  For subscription or unsubscription requests, send
#the single line:
#
#	subscribe perl-users
#or:
#	unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.  

NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice. 

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

#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.

#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 V10 Issue 8686
***************************************


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