Re: Problem calling sub

2003-01-04 Thread R. Joseph Newton
Hi Mike, Look at line 63 and the following line: Note the &amver; statement. elsif ( $dir1 eq 'gaim' or $dir1 eq 'devilspie' ) &amver; { system (" ./autogen.sh --prefix=$prefix --sysconfdir=$sys --localstatedir=$local $debug - ... } There are two problems with this: 1. Perl always requires brac

Re: parsing a program's output as its running (in perl)

2003-01-04 Thread christopher j bottaro
ahh yes, thank you. but i ran into a little problem. consider the code: open PIPE, "| /usr/bin/mplayer args" or die "failed to open pipe, $!" while ( ) { if ($condition) { close(PIPE); } else{ # process line } } it seems that

Re: More advanced list

2003-01-04 Thread Harry Putnam
Jerry Rocteur <[EMAIL PROTECTED]> writes: > Hi, > > I'm looking for a Perl list a bit more advanced that this one, you > know, not beginners questions.. comp.lang.perl.moderated -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: parsing a program's output as its running (in perl)

2003-01-04 Thread christopher j bottaro
hmm, i guess i can open it as a pipe...hmm, yes, that is exactly what i was looking for... On Saturday 04 January 2003 05:45 pm, christopher j bottaro wrote: > hello, > i'm writing a little dvd to divx perl script using mencoder and a 3 pass > method. i want to allow auto cropdetection and cropp

RE: Why Perl kicks but!

2003-01-04 Thread Timothy Johnson
Not to get too far off on a tangent, but I think the '1000\'s of users' he was referring to were the mailing list users. In any case, the point remains the same. Why bother proclaiming your dislike of a language on a list full of thousands of people using the language is not likely to accomplish

RE: More advanced list

2003-01-04 Thread Timothy Johnson
Check out http://lists.perl.org. There are quite a few lists, and probably a few of them are close to what you want, although it seems there might be quite a large gap in the expected comptetency level. In the meantime, you can always post any moderately advanced questions here, and someone can

More advanced list

2003-01-04 Thread Jerry Rocteur
Hi, I'm looking for a Perl list a bit more advanced that this one, you know, not beginners questions.. I love this list and I'm learning a lot from it but I'm wondering if there is another list with less "hello world" or Visual basic is better than Perl type comments, preferably NO WINDOWS but

parsing a program's output as its running (in perl)

2003-01-04 Thread christopher j bottaro
hello, i'm writing a little dvd to divx perl script using mencoder and a 3 pass method. i want to allow auto cropdetection and cropping. to find the crop parameters, you gotta run mplayer and watch the output for the crop parameters. well, i suppose in perl i can capture mplayer's output with

Re: byte count

2003-01-04 Thread Mark Goland
no, I want to use one of Crypt modules which expacts to be passed strings of n*16 bytes. How do I go about genereting such blocks ?? Mark - Original Message - From: "Paul Johnson" <[EMAIL PROTECTED]> To: "Mark Goland" <[EMAIL PROTECTED]> Cc: "perl" <[EMAIL PROTECTED]> Sent: Saturday, Janu

Re: Problem calling sub

2003-01-04 Thread Rob Dixon
Hi If you mean this error: syntax error at E:\Perl\source\prob\build.pl line 63, near ") &" then it's because the code to be executed after the elsif must be in a block. I don't know what the logic of your program should be, but maybe somethhing like this: elsif ( $dir1 eq 'gaim' or $di

Re: References ch 8 programming Perl

2003-01-04 Thread Todd Wade
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My thoughts on perl references. This code: > foreach $file(@files) { > > open file... > @$file = ; > close file... > } creates named arrays via symbolic references. [trwww@devel_rh trwww]$ perl $s

Re: Help with Hello world

2003-01-04 Thread David Leathers
Ok what I was doing wrong was for the newline was using / instead of \n. So it was printing it on the line and going to the next line before it could be seen. Since I changed this can use ./"filename" or pearl "filename" to run. Thanks for the help. After reading some of the post just was wonder

Problem calling sub

2003-01-04 Thread mike
I have the attached sub in code.pl called in the attached build.pl When I try to call it, I get an error thrown up Anyone any idea what I am doing wrong? sub amver { open (AC1,"autogen1.sh") or die "no such file4"; @file1=; foreach $file1(@file1) { $file1=~s/aclocal/aclocal-1.5/g; $file1=~s/aut

Re: Why Perl kicks but!

2003-01-04 Thread R. Joseph Newton
Hi Rob, I'm pretty close to you in my views, except that I use VB essentially for the same reason I use Perl. VB owns the user interface, and Perl has the CGI. I've been burned by VB more than a few times by doing work that should have been portable, but ... Try using a VB Axtive X control i

Re: Help with Hello world

2003-01-04 Thread nyec
On Saturday 04 January 2003 10:18 am, David Leathers wrote: > #!/usr/bin/perl >print"Hello World"; Are you sure it's not printing with your prompt immediately after "Hello World"? Try putting a new line after "World" and it may be noticeable. print "Hello World\n"; nyec

Re: Crypting

2003-01-04 Thread zentara
On Sat, 04 Jan 2003 01:15:40 -0500, [EMAIL PROTECTED] (Mark Goland) wrote: > >Does anyone know a good place to start on encryption socket streams ?? use Net::EasyTCP; It has built-in encryption. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi John. See in-line. "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Paul Johnson wrote: > > > > I am saying that an anonymous array has no name, but it can be accessed > > via a reference to it. > > In that case the reference name is its name

RE: Looking for a perl benchmark suite

2003-01-04 Thread Beau E. Cox
Thanks Paul - I'll try it. Aloha => Beau. -Original Message- From: Paul Johnson [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Johnson Sent: Saturday, January 04, 2003 5:47 AM To: Beau E. Cox Cc: 'Beginners Subject: Re: Looking for a perl benchmark suite On Sat, Jan 04, 2003 at 05:07:41AM

Re: Looking for a perl benchmark suite

2003-01-04 Thread Paul Johnson
On Sat, Jan 04, 2003 at 05:07:41AM -1000, Beau E. Cox wrote: > I can't seem to find a good benchmark suite for perl. > I looked through CPAN and found benchmarking tools, but > not a ready-to-go suite. I think the closest we have is perlbench. http://search.cpan.org/author/GAAS/perlbench-0.07/

Re: References ch 8 programming Perl

2003-01-04 Thread Paul Johnson
On Sat, Jan 04, 2003 at 04:58:45AM -0800, John W. Krahn wrote: > Paul Johnson wrote: > > I am saying that an anonymous array has no name, but it can be accessed > > via a reference to it. > > In that case the reference name is its name OK. This is where we disagree. I believe that you are mist

Looking for a perl benchmark suite

2003-01-04 Thread Beau E. Cox
Hi - I can't seem to find a good benchmark suite for perl. I looked through CPAN and found benchmarking tools, but not a ready-to-go suite. I don't need anything too fancy. I have compiled perl 5.8 on windows with the MS free VC7 std. compiler (which doesn't have optimization) and am wondering wh

Re: References ch 8 programming Perl

2003-01-04 Thread John W. Krahn
Paul Johnson wrote: > > On Fri, Jan 03, 2003 at 06:32:10PM -0800, John W. Krahn wrote: > > > > You are saying that it has no name but it does: arrayref. If it truly > > had "no name" then there would be no way to access it anywhere else in > > the program. > > I am saying that an anonymous array

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi Dan (again) See in-line. "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Another thing I use a lot is to take form input and build sql queries based on what is input for instance > Say I want to search a table withh twenty columns > If I have a f

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi Dan, all I want to pull together the two subthreads and reply to them jointly. I can't, so I'm replying to this one and leaving it to you to make the association with the 'what is/isn't an anonynous array' discussion. See in-line. "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: References ch 8 programming Perl

2003-01-04 Thread Paul Johnson
On Fri, Jan 03, 2003 at 06:32:10PM -0800, John W. Krahn wrote: > Paul Johnson wrote: > > > > On Fri, Jan 03, 2003 at 03:33:30PM -0800, John W. Krahn wrote: > > > Paul Kraus wrote: > > > > > > > > Ok a couple questions on Ref from pg 251 programming Perl. > > > > > > > > push @$arrrayref,$filename)

Re: Help with Hello world

2003-01-04 Thread Ramprasad
oops are u sure you havent done any meddling with perl on your system try this on command line /usr/bin/perl -e 'print "hello world\n"' You still get no output then there is something really wrong try installing perl again David Leathers wrote: Hi I'm using RH8.0 and trying to run my first

Re: Extracting an Atachment From a Email

2003-01-04 Thread Ramprasad
look at MIME::Parser there are a bunch of other modules too but I started using MIME::Parser and found it pretty good Lrmk wrote: Sign L Rakhitha Malinda Karunarathne Web :- rakhitha.cjb.net Email :[EMAIL PROTECTED] Rakhitha Malinda Karunarathne. I'm Using NET:POP3 to download mail from p

Re: byte count

2003-01-04 Thread Paul Johnson
On Sat, Jan 04, 2003 at 05:06:44AM -0500, Mark Goland wrote: > hi , I am having a hard time matching n bits at a time. basicly I have a > string which can be X bytes long, I want to creat an array of N bytes long. > So lets say X=23 and N=5, I would have an array of 5, for of which would be > 5 by

Help with Hello world

2003-01-04 Thread David Leathers
Hi I'm using RH8.0 and trying to run my first program. Feel kind of stupid right now but I can not get this to work. In vi I did #!/usr/bin/perl print"Hello World"; Saved file as first did chmod 755 and then ./first I get no error but Hello World does not print on the screen.

byte count

2003-01-04 Thread Mark Goland
hi , I am having a hard time matching n bits at a time. basicly I have a string which can be X bytes long, I want to creat an array of N bytes long. So lets say X=23 and N=5, I would have an array of 5, for of which would be 5 bytes long. Any idea's ?? are there any modules that can split up string