Re: help with system() command

2003-10-13 Thread Adam Ingerman
On Mon, 13 Oct 2003 23:34, Charles Maier wrote: > I am trying to use the system command. Below is a snippet... causes syntax > error: > > if($fil =~ /begin [0-9][0-9][0-9] /ig){ > print "Found UU FILE: $i\n"; > system 'c:/dos

Re: Process Interaction

2003-09-23 Thread Adam Ingerman
On Wed, 24 Sep 2003 02:39, Buck, Steve wrote: > I need to launch a text based DOS application process on Win2K, then > interact with it. I need to send keystrokes to it and read results so I can > test the DOS application. > > Can you help direct me to what modules/methods I should consider. > > I'

Re: Reg Expression missing last char?

2003-09-18 Thread Adam Ingerman
On Thu, 18 Sep 2003 06:43, Capacio, Paula J wrote: > Thanks Bill, Rob and David! I didn't pickup on $1 getting too much of > the match. I guess the lesson there is when printing the results, I > should have delimited them with either words or characters, (like you > did) then I would've noticed i

Re: print to a printer

2002-09-25 Thread Adam Ingerman
>Hi all, > >i having a problem in the beginning of a new hack. I have a huge table >in a ADO database with contact and a reelation to a table with infomails. >Now, the mail isn't a poblem, but i have a cuple of reciptians for fax. I >have a pdf doc and what i doing now ist to print out the list of

Re: Setting the actual directory with a Perl script.

2002-09-25 Thread Adam Ingerman
>Hello, > >do you know a possibility to set the actual directory inside a Perl script >("chdir my_dir;") to get it changed in the command shell outside the >script? > >setDir.pl: > # some code to set $MyDir > chdir $MyDir; > exit 0; >Command line: > > setDir.pl > >Regards, >

Re: DESPERATE

2002-09-12 Thread Adam Ingerman
>On Tue, 10 Sep 2002 [EMAIL PROTECTED] wrote: > > > > > I'm really desperate here. > > I have a list of files in: > > D:\ftproot\edi\inbox\ > > > > I want to move these files to : > > D:\ftproot\edi\tmp\ > > before I can start processing. > > > > > > So I am using the code below but it doesn't wo

Re: code question?

2002-09-11 Thread Adam Ingerman
Hi, I'm using a perl cgi script which creates an html form, using a radio button and a submit button, and I'm trying to find a way for the cgi code to return two variables under one "onClick" command. Here's the line- As you can see, when the user clicks on

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
> >$die=~s!\\!/!g; > > > >There's also: $die =~ tr!\\!/!; err, yes... there seems to be something wrong with the auto-correct in my fingers, I'll have to look into them. 8^) _ Chat with friends online, try MSN Messenger: htt

RE: Regualr Expression

2002-09-10 Thread Adam Ingerman
> > oops, do that and you'll confuse it. swap that for > > > > $dir=~s'\'/'g; #not interpolated with single quotes > >Huh? I've never heard of that. It doesn't work for me either. What version >of Perl are you using, and where is this documented? > Hmm, it doesn't work either. meh. there's somet

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
>$dir=~s!\!/!g; #should work better, no ambiguity with slashes oops, do that and you'll confuse it. swap that for $dir=~s'\'/'g; #not interpolated with single quotes ~or~ $die=~s!\\!/!g; that'll teach me _ Send and receive Hotm

Re: Regualr Expression

2002-09-10 Thread Adam Ingerman
>Hi all, > >I am dealing with directories and I read somewhere that it is best to use / >rather than \ when dealing with directories. In order to cover my back - I >am attempting to parse the string and replace any \ with / using the >following: > >print "Please enter directory to search: ";#

Re: SSL on Win?

2002-09-10 Thread Adam Ingerman
>>Adam Ingerman wrote: >> >>>I've seen a number of scripts that can use (or in some cases need) SSL, >>>but the net:SSL from activeperl doesn't allow for Windows installs. >>>Is there anyway arround this? or is there an SSL library that's

Re: DESPERATE

2002-09-10 Thread Adam Ingerman
>I'm really desperate here. >I have a list of files in: >D:\ftproot\edi\inbox\ > >I want to move these files to : >D:\ftproot\edi\tmp\ >before I can start processing. > > >So I am using the code below but it doesn't work. >I know I'm not eligible, but will you please help. > > >opendir(INVOICES,'D

Re: can't get cookies from web page through perl

2002-09-04 Thread Adam Ingerman
>I'm trying to use HTTP::Cookies and LWP::UserAgent to fake a real user HTTP >request. When executing this script from a browser, I want to set the >cookies that the website normally would and load the page that the website >normally would also. I can't get the cookie part to work. I'm able to