RE: Searching a binary file for a specific sequence of hex values?

2002-11-15 Thread Peter Guzis
Try the code below. For a search string you can specify either hex codes (e.g. '70 65 72 6C' or '7065726C') or binary data (e.g. 'perl'). --- use strict; use Fcntl 'O_RDONLY'; use constant CHUNK_SIZE => 4096; SearchBinary ('searchstring', 'path/to/file.ext'); sub SearchBinary { my $search

RE: Perl TK List?

2002-11-15 Thread Edwards, Mark \(CXO\)
Send mail to "[EMAIL PROTECTED]" with the following command in the body of your email message: subscribe ptk -Original Message- From: Scott Purcell [mailto:spurcell@;vertisinc.com] Sent: Friday, November 15, 2002 8:01 AM To: [EMAIL PROTECTED] Subject: Perl TK List? Importance: Low

Am I Barking? Or can I kick off another application from a Browser?

2002-11-15 Thread Brian W Smith
Fellow Users, I have built a tree of htmls from POD or even plain text files to allow my colleagues to quickly view their various programmes, bat files, perl scripts etc., not entirely unlike the ActivePerl User Guide but using a slightly different approach. This is proving very popular but I woul

Re: Perl TK List?

2002-11-15 Thread gerhard . petrowitsch
a very good one is [EMAIL PROTECTED] You can get a member (via www.stanford.edu) or you can also post a non-member question (takes longer to be answered). Gerhard PetrowitschTel.: +49 8151 270 126 SP

RE: Perl TK List?

2002-11-15 Thread Chris Anderson
Original Message --- Hello, I am doing a simple interface and I ran into a problem with a widget method. Is there an appropriate list to post a question on perl/TK? Thanks, Scott Purcell Scott: Whenever I had P/TK questions any of the Perl group I am subscribed to helped.

Perl TK List?

2002-11-15 Thread Scott Purcell
Hello, I am doing a simple interface and I ran into a problem with a widget method. Is there an appropriate list to post a question on perl/TK? Thanks, Scott Purcell | Developer | VERTIS | 555 Washington Ave. 4th Floor | St. Louis, MO 63101 | T 314.588.0720 | F 314.588.0735 | [EMAIL PROTECTED]

RE: Unexpected Win32::OLE error on closing an Excel Workbook

2002-11-15 Thread "Brož Jiří, Ing. 11030"
Brian W Smith wrote: >Fellow Users, >I have a script which uses Win32::OLE and Win32::OLE::Variant to open an existing >Excel workbook, select a particular worksheet, read it and then close the workbook. >The following snippet illustrates this: >use MyStuff; # home

Unexpected Win32::OLE error on closing an Excel Workbook

2002-11-15 Thread Brian W Smith
Fellow Users, I have a script which uses Win32::OLE and Win32::OLE::Variant to open an existing Excel workbook, select a particular worksheet, read it and then close the workbook. The following snippet illustrates this: use MyStuff; # home made package of straight

Searching a binary file for a specific sequence of hex values?

2002-11-15 Thread Thad Schultz
What are the best ways to search a binary file for a specific sequence of hex values? The sequence that I'm looking for is: FF D8 FF E0 00 10 4A 46 49 46 00. The files that I'm searching are 14K bytes in size. I suppose the easiest way would be slurp the whole file in at once and then search for

RE: Pattern matching

2002-11-15 Thread Ricci, Mark
-Original Message- From: Nick Djurovich [mailto:nick_djurovich@;aimtechnology.com] Sent: Thursday, November 14, 2002 5:17 PM To: Ricci, Mark; [EMAIL PROTECTED] Subject: RE: Pattern matching Hi Mark, Looking at the important part of the string ; /search q=court reporting [...] You coul

Re: Remove the Elements of Array A from Array B

2002-11-15 Thread Thomas R Wyant_III
"optique" <[EMAIL PROTECTED]> wrote: > forgive my poor english, :), I come form beijing, china. It is better than my Chinese! > my question is: > @B = (1,2,3,4,5,6); > @A = (3,6); > and I want to remove 3 and 6 from @B, after that the @B > will be (1,2,4,5). > but, I don't want to use "foreach

RE: Remove the Elements of Array A from Array B

2002-11-15 Thread Napier, Ed
-Original Message- From: $Bill Luebkert [mailto:dbe@;wgn.net] Sent: Friday, November 15, 2002 6:43 AM To: optique Cc: [EMAIL PROTECTED] Subject: Re: Remove the Elements of Array A from Array B optique wrote: > forgive my poor english, :), I come form beijing, china. > > my question is:

Re: RegEx help

2002-11-15 Thread $Bill Luebkert
Bullock, Howard A. wrote: You could cheat a little instead of trying to do it with just a RE, use an embeded tr/// or s///: my $text = 'axxxccvvvacasdcxaswrefajjawerasdcxaswrefajhhaasera'; $text =~ s#(.*?)# my $x = $1; $x =~ tr/a/8/; sprintf '%s', $x #eg; Your two little dashes make my client

RE: storing an executable in a script - thanks everyone

2002-11-15 Thread Mike Brentlinger
i just wanted to thank everyone for all the input and great examples, i now have quite a few working options. thanks again. Original Message Follows From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: 'Mike Brentlinger' <[EMAIL PROTECTED]>, [EMAIL PROTE

RE: RegEx help

2002-11-15 Thread Bullock, Howard A.
You could cheat a little instead of trying to do it with just a RE, use an embeded tr/// or s///: my $text = 'axxxccvvvacasdcxaswrefajjawerasdcxaswrefajhhaasera'; $text =~ s#(.*?)# my $x = $1; $x =~ tr/a/8/; sprintf '%s', $x #eg; -- Thanks. The main problem I was having was I couldn't find th

Re: Remove the Elements of Array A from Array B

2002-11-15 Thread $Bill Luebkert
optique wrote: > forgive my poor english, :), I come form beijing, china. > > my question is: > @B = (1,2,3,4,5,6); > @A = (3,6); > and I want to remove 3 and 6 from @B, after that the @B > will be (1,2,4,5). > > but, I don't want to use "foreach" to iterate @B and @A > Is there any easy way to d

Remove the Elements of Array A from Array B

2002-11-15 Thread optique
forgive my poor english, :), I come form beijing, china. my question is: @B = (1,2,3,4,5,6); @A = (3,6); and I want to remove 3 and 6 from @B, after that the @B will be (1,2,4,5). but, I don't want to use "foreach" to iterate @B and @A Is there any easy way to do this? Best wish with

Re: storing an executable in a script

2002-11-15 Thread Johan Lindstrom
At 19:15 2002-11-14 -0500, Mike Brentlinger wrote: ive played with Convert::UU to uuencode a binary file as some strings that could be stored as just a variable in the script and i have examples that uu encodes and uu decodes a exe just fine... the problem is that the encoded strings have thing