RE: Running rc4 script?

2003-03-14 Thread brianr
jack ander writes: > Hi, > > Can anyone instruct me on how to make this script run using ActivePerl on > WinXP? > > Thanks! > [EMAIL PROTECTED] > > > "To use the perl implementation of RC4 you just give a key in hex on the > command line and the rc4 perl program will encrypt standa

RE: Sorting Hashes of Hashes

2003-03-14 Thread brianr
King, Jason G writes: > >%hash = (%hash, > > $ordernum => { > > date => @data[1], > > submitby => @data[2], > > mgmt => $mgt, > > title => @data[5], > > loc

Re: Could not connect to SMTP server using Mail::Sender - Revised

2003-03-12 Thread brianr
Jenda Krynicky writes: > From:"Sidhartha Priye \(local\)" <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: Could not connect to SMTP server using Mail::Sender - Revised > Date sent: Wed, 5 Feb 2003 13:30:23 -05

RE: system STDOUT capture

2003-03-12 Thread brianr
Markham, Richard writes: > > I'm having trouble figuring out how I can capture the STDOUT from a system > function call into an array? > example: output from the unix ps command put into array. > system 'ps','-ef' my @ps_output = `ps -ef`; Documented in 'perldoc perlop' under quote-like op

RE: passwd-asteriks with ?

2003-03-03 Thread brianr
[EMAIL PROTECTED] writes: > ..anyone has idea how to kill/asteriks'ize (;) strings typed > from console in smart/qick way in pure perl? > > so this could work: > > print "enter passwd: "; > # do something with STDIN > my $passwd = ; > > /pd There is a FAQ "How do I ask the user for a

RE: Tk: Edit and save text

2003-02-18 Thread brianr
Oeschey, Lars \(I/EK-142, extern\) writes: > > Well, that's true -- you want "$configtext->get(0.1,'end');", > > for example. > > hm, ok, that worked... but I'm confused now: why 0.1? Actually I believe that the first method to the get method should be a string, i.e. $configtext->g

Re: Dialog without Topwindow?

2003-02-18 Thread brianr
michael higgins writes: > Oeschey, Lars (I/EK-142, extern) wrote: > > Hi, > > > > is it possible to have a Tk::Dialog without a $top defined? I have some > > non-graphical Installation, and on error I just want to pop some message up > > that installation failed (or succeeded). If I create a

RE: Dialog without Topwindow?

2003-02-18 Thread brianr
Oeschey, Lars \(I/EK-142, extern\) writes: > Hi, > > is it possible to have a Tk::Dialog without a $top defined? I have some > non-graphical Installation, and on error I just want to pop some message up > that installation failed (or succeeded). If I create a (empty) $top first, > it looks u

RE: Another weird problem: @ gets scalar()

2003-02-18 Thread brianr
[EMAIL PROTECTED] writes: > > > print @mapped; > > > $dialog=$top->Dialog(-title=>"Fertig", -text=>"Die > > > Laufwerke\n".@mapped."\nwurden erfolgreich > > > angebunden",-buttons=>[qw/Ok/])->Show; > > > That's because the second use evaluates @mapped in a scalar context, > > wh

RE: Another weird problem: @ gets scalar()

2003-02-18 Thread brianr
Oeschey, Lars \(I/EK-142, extern\) writes: > ***A T T E N T I O N*** > This email originates from the Internet and therefore may not > be from the apparent sender. > > If you have any doubts about the origin or content of the email please > contac

RE: Strange error from chomp

2003-02-18 Thread brianr
[EMAIL PROTECTED] writes: > Hi, > > I have the following routine to remove all "\n" characters from a strings > end before writing it to a file. within the routine I get the following > error when a "\n" is removed. Everything is working as expected, but the > error irritates me a bit. > T

RE: template::rtf

2003-02-06 Thread brianr
Gustavo H. Maultasch writes: > > I´m trying to use template::rtf to generate rtf files, > but i´m getting an error for some time. > > After calling the 'execute.pl' script from 'system' > command, i get the following error: > Undefined subroutine &Template::RTF::Process called at > C:

RE: foreach note, perl internals question

2003-02-06 Thread brianr
Wayne Simmons writes: > Ok, so I figured if I did this: > > foreach (@myArray) > { >print; >splice (@myArray, $current_index, 1) if ( $somecondition); > } > > everything would be OK, because (in my mind) @myArray was being evaluated at > the top of the loop once, all values ex

RE: Date Conversion in Perl

2003-01-29 Thread brianr
Kenneth Jideofor \[ MTN - Ikoyi \] writes: > Hi, > > Given a number of days, it is expected to determine the real date from Jan > 1, 1970. > The real date should be in the following format: Year-Month-Day. > > How do I implement this task using Perl. > > For example, write a Perl script

RE: Problem with path containing spaces

2003-01-23 Thread brianr
[EMAIL PROTECTED] writes: > > The doco for File::DosGlob says that spaces are used to delimit > > multiple patterns, and that in order to include patterns containing > > spaces you should escape them with double quotes or backslashes, e.g. > > Yeah, I've already guessed that that is the probl

RE: Problem with path containing spaces

2003-01-23 Thread brianr
[EMAIL PROTECTED] writes: > > I have a problem with the following code: > > > > sub FileSelect { > >my $types = [ > >['S19 Files', ['.s19']], > > ['All Files','*', ], > > ]; > > $filename = $leftframe->getOpenFile(

RE: @ARGV with service

2003-01-20 Thread brianr
[EMAIL PROTECTED] writes: > >$now=localtime; > >print DEBUG "$now\n"; > > btw: When I use the upper lines, I get "Mon Jan 20 15:49:26 2003" as $now. > If I do > > print DEBUG localtime; > > i get some big number. What is that number? Unix-ticks or what it's called? > The differ

RE: Button exists?

2003-01-15 Thread brianr
[EMAIL PROTECTED] writes: > > I may be missing the point here, but if you have just created the > > button you know it hasn't been packed yet. Why would you need to ask > > it? > > The button is created inside a subroutine that is called via another button. > The user could click again on th

RE: Scrollbar and Text Widget

2003-01-15 Thread brianr
[EMAIL PROTECTED] writes: > > I have a Text widget that should (and does) display the > > output of system > > calls. But the attached scrollbar doesn't work, when i click > > on the arrows, > > it only scrolls one line. When I grab the bar itself (the > > movable thing in > > the middle)

RE: Button exists?

2003-01-15 Thread brianr
[EMAIL PROTECTED] writes: > > You want to test if a widget is packed ? > > Then, you can use the ismapped method. > > It returns 1 (is packed) or 0 (is not packed). > > hm, this doesn't work: > > $gobutton=$top->Button(-text => "Go!", -command => [\&Compute]); > if (($gobutton->ismap

RE: module reuse

2002-12-19 Thread brianr
Choi Myun-Q14751 writes: > I am running ActivePerl 5.8.0 on WindowsNT platform. The following code is > giving me an unexpected error. Exact same code runs as expected when I run > it with Perl 5.6.1 on Solaris platform. Could you point me to what the > cause of the problem might be? Could

RE: AW: How does "for" work?

2002-12-11 Thread brianr
Dietmar Thal writes: > > sorry, 2 much ASP > > foreach $raus (@todelete) { > > regards, Dietmar > > > > btw: reading an introductional tutorial on loop statements > in perl or either `perldoc perlsyn` helps ;) In which you will see: The "foreach" keyword is actually a s

RE: Tk Text Widget Cursor Position

2002-12-05 Thread brianr
Conrad, Bill \(ThomasTech\) writes: > Hi All > > Is there a way to find the current cursor line and column position > in a Tk text widget? It doesn't seem to be documented, AFAICS, but $widget->index('current') seems to work. HTH -- Brian Raven You have to admit that it's difficult t

Re: Exporter/OO in same module?

2002-10-18 Thread brianr
Dougal Campbell writes: > On Wed, 16 Oct 2002, Dougal Campbell wrote: > > > I'm trying to figure out how to dynamically let a module choose whether > > to use the Exporter module to export functions or present itself as an > > object with OO methods. How can I do that? > > Okay, nevermind.

Re: File Permissions

2002-10-11 Thread brianr
$Bill Luebkert writes: > [EMAIL PROTECTED] wrote: > > > > All of which discussion illustrates, I think, why it is so often quicker > > and cleaner to use the ready made solution to the problem that comes > > with Perl, i.e. in this case, File::Find. > > I use it all the time, but it's not

RE: Multi-threading with filehandles

2002-07-24 Thread brianr
Robert Vaughn writes: > Kevin, > Thanks for the help. I have not been able to find any > good examples or documentation regarding POSIX on > ActiveState. Any advice? If you mean the POSIX perl module then see 'perldoc POSIX'. If you mean POSIX threads then a book on the subject would be mor

RE: Regexp needed

2002-07-24 Thread brianr
[EMAIL PROTECTED] writes: > Hi, i have this: > $toto1="Transitionned to assigned by lmiso to W_VAL3G_SOP on 29/11/2001 > 15:20:46"; > $toto2="Transitionned to concluded by elohez on 1/2/2002 7:47:31"; > > > $toto1=~/^Transitionned to ([^ ]*) by ([^ ]*)( to ([^ ]*))? on ([^ ]*)/; > > pr

RE: How do I tell the Win32/Win2K OS to activate newly-setenvironment variables?

2002-07-09 Thread brianr
Peter Stucki writes: > ***A T T E N T I O N*** > This email originates from the Internet and therefore may not > be from the apparent sender. > > If you have any doubts about the origin or content of the email please > contact PC Support on x2288

RE: A Newcomer and . Help!

2002-07-08 Thread brianr
John Ravich writes: > It's only my third day with Perl and your third identical message. Careful now :-) > ... I am > working in the Komodo development environment on > Windows 2000. I am trying to get a user input for the > radius and then, calculate the circumpherence of the > circ

Re: regex help?

2002-06-25 Thread brianr
Jenda Krynicky writes: > I'd do it like this : > > # set up the mapping > %replace = ( > Boulevard => 'Blvd', > Street => 'St', > Drive => 'Dr', > Avenue => 'Ave', > Circle => 'Cir', > ); > > # prepare the regular expression > $regexp = join '|', keys %repla

RE: split function help ????

2002-06-18 Thread brianr
Nasir Kamal writes: > Split function in PERL. > i want to split a sentence into words, i m using the following syntax: > > split(/ /,$line) note that I have given one space in between two slashes: > > however in $line sentence there are often more than one spaces, like 2 space

Re: Help speeding up code (quite long)

2002-06-18 Thread brianr
Evan Morris writes: > Hi again > > I have successfully managed to read my csv file into a hash. I know have a > hash containing value pairs of: > > product_id -- number_of_visits > > I know I can sort the hash by the keys, but is there any way to sort the > hash by the values of the ke

Pattern search program

2002-05-14 Thread brianr
Heiko Nieke writes: > > Hi, > > as I am relatively new to Perl it would be great if anybody of you could > help me to solve the following problem: > > Description of the problem: > > - I would like to read a sequence in Fasta Format (stored as text file > on a local hard disk) >

Re: dumb-ass question re exponents

2002-04-05 Thread brianr
Chris Snyder writes: > > Dumb-ass answer: > > print "Number to square: "; > $num = ; > > print $num ^ 2, "\n"; > > I haven't tested this, but you get the idea. That operator is bit-wise exclusive or. I think the OP was looking for exponentiation which is rather different (** operator

restart remote service

2002-03-21 Thread brianr
Vitaly Sinitsin writes: > Hi, > Is any way(using Perl) to make restart of service on remote machine, mention > Win2000(pro, server) only!!! > On NT I've got solution. > Thank's. Does the documentation for Win32::Service help at all? HTH -- Brian Raven Part of language design is purturbin

Strict is driving me mad

2002-03-20 Thread brianr
David Anderson writes: > Hello All, > > I am trying to set up formatted printing and seem to be blocked by use > strict. > > Code below produces the following errors, so could someone be kind > enough to explain why they occur (and more particularly how one should > write formatted print

enumerating shares

2002-03-01 Thread brianr
Eric Logeson writes: > ***A T T E N T I O N*** > This email originates from the Internet and therefore may not > be from the apparent sender. > > If you have any doubts about the origin or content of the email please > contact PC Support on x2288

Devel::DProf module available for Perl 5.6+?

2002-03-01 Thread brianr
Peter Stucki writes: > ***A T T E N T I O N*** > This email originates from the Internet and therefore may not > be from the apparent sender. > > If you have any doubts about the origin or content of the email please > contact PC Support on x2288

Win32::Eventlog

2002-02-26 Thread brianr
analyser the writes: > hi, >I am new to this list and trying to write a script to access and display > the error entries in the eventlog. Below is the script which i am trying to > use. > > ~ > use Win32::EventLog; > > $Event = new Win32::E

UTF-8 & UniCode

2002-02-26 Thread brianr
Michael Krygowski writes: > Hello All, > > I was wondering if anyone out there has used UTF-8? I can't seem to find > much on the topic for Perl. Only thing I've found so far (for usage) was: > use utf8; > > And that seemed to just set a flag so that strings would be traded in a(n) > U

LWP::UserAgent

2002-02-19 Thread brianr
Moti A. Landes writes: > hi, > i am trying to parse information from a HTML file, save certian stuff in > variables and then take actions. > the only way i found i can do this is as follows: > > $ua = LWP::UserAgent->new; > $request = HTTP::Request->new('GET', "$url$interface.html"); >

how to find current dir..

2002-02-05 Thread brianr
Abhimanyu_Bhola writes: > I have this requirement ( for both Linux/Windows): > > use File::Copy; > File::Copy::copy ( , ) > > > How can I find the current dir(in which this script is running)? For your requirement you don't need to know what the current directory is. If the fi

crashing when using a dbm file

2002-02-05 Thread brianr
Michael T Godfrey writes: > I have a perl program that crashes when i run it with activeperl. But it > runs fine when i run it on unix. > > > #!/usr/bin/perl > > $file = "test"; > > dbmopen (%HASH, "$file",0444); > > $HASH{a} = "1"; > $HASH{b} = "2"; > $HASH{c} = "3"; > > @k

HTTP Request error

2002-02-05 Thread brianr
Bill Stennett writes: > Hi All > > Platform: windows, AS Perl > > I'm trying to create a request object to post data to a web URL. My problem > is that I can't get past creating the request object. I need to pass a > couple of values (a and b). The offending line of code is shown below:

RE: Clearing Backreference Variables?

2002-01-31 Thread brianr
Norman Pearson writes: > Thanks to everyone for the input. > > It needs to parse a string for the file name and extension i.e. > (D:\temp\pic1.jpg and retrieve pic1.jpg). If there is no string to parse > then the string needs to be empty or null. > > I just placed it in a subroutine: >

Stumped on substitution operator question

2002-01-31 Thread brianr
Charles Knell writes: > I need to parse some HTML files in order to tag specific strings with > formatting markup. Specifically, I have some Transact-SQL stored procedures > which I have transformed into HTML. In the procedures are variables identified > by a leading "@" symbol. For example:

Web searching....

2002-01-16 Thread brianr
Fifield, Mike writes: > I am working of a script that I need to have spider the web and search for > certain words on the webpage's that it connects to. It also needs to be able > to connect to the internet via a proxy server. Does anyone know of a good > module to use for this type of script?

Multi-Column listboxes

2002-01-16 Thread brianr
Messier, Jean-Francois writes: > > I am starting programming in Perl/TK and I was playing with > listboxes. I have a project that would require a multi-column listbox, or a > grid. I want to be able to list lines with several items, that would scroll > together. > I have used Tk::HLi

System commands

2001-12-19 Thread brianr
Mohammed Khatib writes: > Hi All, > > I need to call a command line application (called LinkD) from my perl > program. What I need is the output string that LinkD outputs to the screen > so I can use it in my program, but at the same time, I don't want the system > application to show up on

Use of the $! variable outside of die

2001-11-22 Thread brianr
Philip Morley writes: > Is there anyway of evaluating the $! variable outside of the die function? > > Specifically, within my Perl script I want to be able to get the error > string containing the most recent operating system error, without actually > exiting. However $! only seems to be a

error installing package 'win32-ole'

2001-11-15 Thread brianr
Miika Tuuli writes: > > > Could somebody helps me? > I tried install 'win32-ole'-package in PPM. > It didn't work and it gave this error: > > Error installing package 'win32-ole': Could not locate > a PPD file for package win32-ole > > Does somebody know, what is this PPD-file > a

How can I remove first 7 charecter from sring

2001-11-07 Thread brianr
web_tur writes: > Dear sirs, > > Againe I try, and try, no result > > I have this text "2001/10/01 10:55 this is test message" > > I want to remove first 16 charecter from text to have only "this is test > message" > > Thank you for your help To manipulate substrings whose size and

searching for similar keys in a hash

2001-11-07 Thread brianr
Bill Stennett writes: > Hi All > > Does anyone now if there is a way to find keys in a hash which are similar? > For example could I retrieve all the entries that start with the letter 'A'. > I suppose what I really want to do is retireve all the keys from a hash > which match certain searc

finding EOF

2001-10-31 Thread brianr
[EMAIL PROTECTED] writes: > Hello, > > I need to find a test when I open a File, to detect the EOF. > > open (FILE, "< $file); > while (){ > if ($_ eq eof){ print "BINGO\n"} > } > close FILE; Your while loop is effectively 'while not eof' so you don't need to explicitly check

Version Upgrade

2001-10-26 Thread brianr
Sturdevant, Robert W. (Contr) writes: > Hi all, > I'm using AP628 and would like to upgrade to AP629. Previously I've > uninstalled then installed the newer version and used PPM to reinstall > modules. I've noticed that CPAN has an autobundle feature that identifies > currently installed CPAN

Garbled debug prompts

2001-09-28 Thread brianr
Yes, I noticed this too on my new win2k box. They look a bit like ansi escape sequences, so loading the ansi.sys driver may help. The problem seems related to the Term::Readline module that comes (or doesn't come?) with this version of perl. If you check the doco for Term::Readline it will tell

RE: How does 'exec' work ?

2001-09-14 Thread brianr
[EMAIL PROTECTED] writes: > NO, thank you for the Tip, but with system the Programm waits for Notepad to > finish. > But I want to start Notepad, and finish Perl. > That's what I'm wondering about: system works fine, but with exec I get no > effect. Ah, I see. Then in that case try syst

How does 'exec' work ?

2001-09-14 Thread brianr
[EMAIL PROTECTED] writes: > Hello, > > I would like to present the result of my Script on a Win-box in Notepad. > So I thought about this: > exec ("Notepad, Result.txt") or print "Fehler: $!\n"; > > But I only get: > Fehler: Invalid argument > > What is wrong ? > I use: W

Tk information

2001-08-31 Thread brianr
North, Wesley J writes: > First off, thanks for all the input, I installed the Tk module and have > created a couple of cool little widgets. I am just about to go searching for > some additional help, but I thought I would kick this out to the group. What > part of Tk, if any, would I use to p

RE: PPM vs. CPAN for use with ActivePerl, and fork emulation

2001-08-09 Thread brianr
Tom Gioconda writes: > The reason the Active State PPMs can be assume to be thread safe is > because ActiveState only makes PPMs from CPAN modules that can be be > built as thread safe. As I recall the criteria for including modules from CPAN in the PPM archive were that they build, pa

(no subject)

2001-08-07 Thread brianr
Alexandre Bouchard writes: > Hello > > I am new to the "perl world" Welcome. > > I installed activePerl, and now I want to set the @INC (I guess it is like > the CLASS_PATH w/ JAVA) > > How can I do that ? Thx. See 'perldoc -q lib' for starters. -- Brian Raven But I know what's im

regexp to validate url

2001-08-01 Thread brianr
David Mintz writes: > This is a generic perl quesetion rather than Windows/Perl, but... > > Does anybody have a good regexp for testing whether a string is a > well-formed www address? (I don't care about going out and fetching the > page to see if it exists, just whether the url looks legal

get arg's from cli fails on w2k

2001-08-01 Thread brianr
Faron Hopper writes: > C:\perl>snmpgetcdpnei.pl rtr1 public 1.3.6.1.2.1.1.3.0 > hostname: rtr1 > community: public > OID: 1.3.6.1.2.1.1.3.0 > ERROR: Expected positive numeric port number. > > Does anyone have any ideas? and > my ($hostname,$co

grep function

2001-07-19 Thread brianr
Shailja writes: > Hi all, > Can anyone tell the usage of Grep. perldoc -f grep >I want to retrieve all the text files from , say C:/ directory and then use grep >function to search for a string in these text files using grep. Already been done. See http://language.perl.com

Perl Coding Standards / Grade this code A - F

2001-05-11 Thread brianr
Will Du Chene writes: > Hi List. > > A while ago, the company that I work for brought in a couple of consultants > to write the application that we currently use. Well, they left and I was > charged with maintaining, expanding upon and refining the code which they > wrote. Unfortunately, I

Regexpr-Problem

2001-05-11 Thread brianr
Lange writes: > for your understanding: > ô is equal to hexcode xf4 > õ is equal to hexcode xf5 > > > the following problem appeared: > > $var="ôinit1õDresden,ômõ Gewerbeg. Kesselsdorf"; > > After a > $var=~s/(\xf4.*?\xf5)//g; > it´s supposed to keep the fol

Bug in active perl sockets??

2001-04-24 Thread brianr
R Blakers writes: > Hello, > > We have hit what looks like a bug in the activestate (build 623) > implementation of the windows socket IO. > > What we are doing is writing a server will accept incoming requests on a > port and spawn in the same thread a client socket to handle the reque

Does File Testing Work On Perl For Win32?

2001-04-24 Thread brianr
Jerry Bradenbaugh writes: > Dear Readers: > > Has anyone had problems with inconsistent file testing with -e, -f, -d, etc.? If so, >any ideas for workarounds? Thanks. > > > Jerry Bradenbaugh I can't recall ever having such problems. Perhaps you could give more details ab

Getting OLE ProgIDs

2001-04-24 Thread brianr
Sarir Khamsi writes: > OK, I give up. I've looked in several places -- including between the > pillows on my sofa Perhaps you found some money. I hope so. -- and still can't find out how. How does one get > the ProcID for doing OLE automation in Perl? That is, I want to > control Visual C++

File Testing

2001-04-24 Thread brianr
Kan, Yu-Ting writes: > Dear all > I have browsed for all file test operator but is there one testing whether a > file is > being read/write? File test operators are described on the perlfunc page, under "Functions for filehandles, files, or directories". Look for "-X". -- Brian Raven You te

RE: reading portions of a line from a file

2001-04-03 Thread brianr
Edwards, Mark (CXO) writes: > > Either substr() or unpack(). unpack() is probable more efficient. You should probably check before you make such statements. The following code: use strict; use Benchmark; my $count = 100; my $data = "abcdefghijklmnopqrstuvwxyz"; timethese($count,

Socket Problem

2001-03-28 Thread brianr
Marv Brafman writes: > I'm trying to create a simple client/server where the > client sends one line of text to the server and the > server displays the text. The client and server are > running on the same NT 4.0 machine. Everything seems > to work, except that the length of the text recieve

Howto call Perl form VB?

2001-03-22 Thread brianr
Thor Egil Leirtrø writes: > We have an VB application that is extensible with scripts, using the > Microsoft ScriptControl > This works perfectly with VBScript and Java scripts. The scripts have > one string parameter, > and returns the result in a string. > > Does anybody

Problams to install the Net::Ftp

2001-03-21 Thread brianr
Pablo Rodrigo writes: >Please, I´m not finding the Net::Ftp.ppd in the Internet... >Where I can find it ? You shouldn't need to find it. Net::FTP is part of the libnet package, which comes (IIRC) with the Activestate distribution. If you are trying to use Net::Ftp (as per your m

Env package problems

2001-03-12 Thread brianr
Andrey Bronfin writes: > I'm trying to use Env module and could not succeed yet :( > > This is what i do : > > use Env ; use Env qw{a}; > $ENV{a} = b ; > print $a ."\n" ; -- Brian Raven I'm afraid my gut level reaction is basically, "'proceed' is cute, but cute doesn't cut it in the

Inconsisten ARGV handling on Win32 & Solaris

2001-03-07 Thread brianr
Mike Blomgren writes: > I have encountered a problem with the way ActivePerl handles @ARGV and > wildcard expansion under Win32 and Solaris, and I don't know how to get > around it in an efficient manner. > > I have a single perl script which needs to run under both Win32 and > Solaris,

MailTools Question

2001-03-07 Thread brianr
Paul Maine Jr. writes: > I am successfully reading the POP3 message. Next, I store the message > contents in the @mailmessage array. When I try to print the header tags - > nothing is printed. Any assistance would be appreciated. I have included the > code for your review. > > Thank You >

How to read a PDF file using Perl

2001-02-21 Thread brianr
Clarke, Barbara P, HRSVC writes: > Hi, > Does anyone know how I can read a PDF file and then search for a keyword? Perhaps the Text::PDF and/or Text::PDF::API modules may be of assistance. HTH -- Brian Raven And other operators aren't so special syntactically, but weird in other ways, like "

deleting hash values

2001-02-21 Thread brianr
Matthew Thompson writes: > Hi, > I'm using the following code to delete values from a hash - I get the > warning (I say warning as it does delete the value) below when delete is > called. Is ther a better way of deleting values from hashes? > > foreach $item (%$self) { >

Ejecting a CDROM

2001-02-15 Thread brianr
Parry Troy writes: > Does anyone know how to eject a CDROM from a perl script (Win32)? > Im trying to do it through Win32API::File. > DeviceIoControl( $hDevice, $uIoControlCode, $pInBuf, $lInBuf, $opOutBuf, > $lOutBuf, $olRetBytes, $pOverlapped ); > > $hDevice is supposed to be a Win32 nati

oo new PKG problems

2001-01-22 Thread brianr
Joe Reed writes: > hi everyone! > > i'm trying to get some of the code into more of an object-oriented syntax, > however when i try to create an instance of my new obj, i get a syntax error. > anyone done any perl oo that can help? i'm running activeperl build 623 on > win 2k, and

Re: path of perl binary

2001-01-17 Thread brianr
Manesh Rao writes: > >Manesh Rao writes: > > > >is there a way to set @INC even BEFORE perl is started? > > > > > > > >that is : I don't assume the values of @INC are hardcoded, > > > >as you might install perl wherever you like - so there > > > >might be some kind of an ini-file. > >

geting absolute path of a file/directory

2001-01-04 Thread brianr
952Coop1 writes: > hi all! > > in one of my scripts, i need to determe the current directory working >direcotry. however, i can't seem to figure out how to get the current directory >path. can anyone help? The portable way is: use Cwd; my $dir = cwd; HTH -- Brian Raven "What is