Setting $! in xs

2011-08-06 Thread Beau E. Cox
Hi - I am a bit confused about how to set $! from within an xs module. I have searched perlxstut, perlxs, and perlguts without really understanding what is involved. Can some one either point me to a module that sets $! or give me a short description on how it is done? Thanks!

Mac::Glue with Adobe Illustrator

2009-06-09 Thread Beau E. Cox
HI - Has anyone on this list used Mac::Glue, specifically to script Adobe Illustrator? I have been trying and trying to get it to work, alas, no joy. Simple things (start Illustrator, activate, quit, etc) work, but as soon as I start using parameters I run into a brick wall. This script to open

Re: I'm sure this is a common question, but I can't find the solution.

2009-03-15 Thread Beau E. Cox
On Sun, Mar 15, 2009 at 2:39 AM, Chas. Owens chas.ow...@gmail.com wrote: snip This is shell dependent, and unfortunately the standard Windows shell (cmd.exe) does not follow the sh syntax.  Single quotes are not allowed as quotes and double quotes do not interpolate values.  Also $ is not how

Re: Multiline comment in Perl

2008-05-16 Thread Beau E. Cox
On Thu, May 15, 2008 at 11:24 PM, sivasakthi [EMAIL PROTECTED] wrote: Hi all, How to comment Multiple lines in Perl? Thanks, Siva =comment like this example =cut Aloha = Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

iso-8859-1 to unicode problem

2007-04-24 Thread Beau E. Cox
Hi - I am new to international character encoding and how the various encodings are handled in perl. After a day of reading, I'm asking for help. I am downloading data from an international (French) web site. The HTTP headers show that the pages I am downloading are encoded in iso-8859-1. Most

Re: iso-8859-1 to unicode problem

2007-04-24 Thread Beau E. Cox
On Tuesday 24 April 2007 02:07, Mumia W. wrote: On 04/24/2007 03:06 AM, Jeff Pang wrote: 2007/4/24, Beau E. Cox [EMAIL PROTECTED]: How do I get a proper conversion from iso-8859-1 to perl's internal utf8? [snipped] I don't think it'll work in this case because \x99 doesn't seem

Re: Dynamically updating perl variables

2006-07-25 Thread Beau E. Cox
On Tuesday 25 July 2006 09:23, siegfried wrote: I have some cron jobs running perl for many hours. Sometimes I would like to control things dynamically or even shutdown the job if I notice it is not running properly (based on the log files). Below is what I am doing presently (inside a loop)

Re: Filter Quotes

2006-03-03 Thread Beau E. Cox
On Thursday 02 March 2006 13:30, maillists wrote: Hi, I'm trying to filter quotes out of a web form and replace them with quot; $Values-{text_field} =~ s//quot;/; return; The above would replace the first with quot; on the first line of the field; if your field contains newlines,

Re: Net::Server

2006-02-20 Thread Beau E. Cox
On Sunday 19 February 2006 13:52, Tom Phoenix wrote: On 2/18/06, Tom Allison [EMAIL PROTECTED] wrote: I am trying to set up a server using Net::Server. I believe that you omitted a vital piece at the top of your code: a package directive. package AuthServer; Without that, your @ISA

Re: Net::Server

2006-02-20 Thread Beau E. Cox
On Monday 20 February 2006 10:06, Tom Allison wrote: package AuthServer; @ISA = qw[Net::Server]; my $server = bless {   port  = 8081,   }, 'AuthServer'; $server-run(); No. This _works_: package AuthServer; use Net::Server; @ISA = qw[Net::Server]; AuthServer-run( port = 8081 ); exit;

pack/unpack question

2006-01-22 Thread Beau E. Cox
Hi - I really thought I understood pack/unpack, but this has me stumped. I can't find anything to explain the operation of the following script in the documentation: use strict; use warnings; my $buffer = pack( NN, 22, 0 ); printf buffer length = %s\n, length $buffer; print buffer , join(

Re: pack/unpack question

2006-01-22 Thread Beau E. Cox
Thanks - my stupid error. On Sunday 22 January 2006 12:58 am, Xavier Noria wrote: Beau E. Cox wrote: I really thought I understood pack/unpack, but this has me stumped. I can't find anything to explain the operation of the following script in the documentation: use strict

Hash '... = +{ ...' synatx

2005-12-10 Thread Beau E. Cox
Hi - I came across this syntax in a module I am using: Some::Module-new( some_option = 'blah,blah', some_hash_option = +{ another_option = '...', ... }, ... ); I have no idea what the ' = +{ ' syntax is, what it does, and why it is used ( it

z

2005-12-10 Thread Beau E. Cox
Hi beginners - Aloha = Beau; [EMAIL PROTECTED] 2005-12-10 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

z

2005-12-10 Thread Beau E. Cox
Hi beginners - Aloha = Beau; [EMAIL PROTECTED] 2005-12-10 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/ http://learn.perl.org/first-response

Re: how to develop an editor in perl

2005-12-08 Thread Beau E. Cox
Hi Rajeev - At 2005-12-07, 20:55:59 you wrote: Hi, I got a doubt how to develop an editor that can be used to modify files and it has to provide movement of cursor from left to right or right. thanks and regards, Rajeev Kilaru First of all - why would you want to reinvent the wheel with so

Re: Re: Dates again.

2005-12-05 Thread Beau E. Cox
Hi vmalik - At 2005-12-05, 07:09:51 you wrote: I am assuming that localtime() returns the time in unix file format (number of seconds since 12:00 AM on January 01, 1970). Why don't you convert 72 days to seconds and subtract that number from the output of localtime()? No. time() returns epoch

Re: Non-Blocking INET getline

2005-11-20 Thread Beau E. Cox
Hi Andre Muench - At 2005-11-19, 18:55:13 you wrote: Hi, I have a Problem with blocking INET reading. I created a socket and wait till a client connect to it. But no matter what I do, whenever I try to read from the socket, it blocks. I tried $Client-blocking(0), but it seems to have no

Re: Check empty hash

2005-11-16 Thread Beau E. Cox
Hi Suvajit Sengupta - At 2005-11-16, 01:32:31 you wrote: Hi, How can I test whether a hash is empty or not ? For e.g: I have reference to a hash , say $preCommand and I get $preCommands as {} , Its an empty hash, but it exists and is also defined. I need to check

Re: Syntax error using bitwise

2005-11-15 Thread Beau E. Cox
Hi Sastry - At 2005-11-15, 00:25:37 you wrote: Hi I have a script that gives error Syntax error at /u/isldev3/exp/oper.pl line 7, near ) print Execution of /u/isldev3/exp/oper.pl aborted due to compilation errors. $x =3D 3; $y =3D 4; $z =3D 3; if (($x $y $z) 20) print \n Lies below

Re: how to send mail within a script ?

2005-10-22 Thread Beau E. Cox
Hi Juan B - At 2005-10-22, 01:37:53 you wrote: HI, I am trying to write a script which will send the result of a var to mail web mail.this is what I wrote : #!/usr/bin/perl #use strict; use warnings; my $file_listing = `/usr/bin/nmap -p 80 192.168.1.1`; How can it be done? do I need to

Re: Re: how to get defined number of digits after point of a variable

2005-10-20 Thread Beau E. Cox
Hi Wijaya Edward - At 2005-10-19, 21:18:16 you wrote: Hi: Hi For example, for $j=2.56789, how can I get the very first two digits after points,ie, I just want to get 2.56. Thank you very much in advance. Is this what you want? $ perl -e '$j = 2.56789; $j =~ /(\d\.\d\d)+/; $ns = $1;

Re: white space between roam and act

2005-10-19 Thread Beau E. Cox
Hi K.Moeng - At 2005-10-18, 20:00:28 you wrote: Hello again, I have rephrased my question from yesterday, I want to be able to ignore the white space in between ROAM and ACT that is return the query as ROAM ACT without falling to the else statement. $msg = $ARGV[0]; $msg =~ s/\/' /ig; the

Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi Gustav - At 2005-10-13, 23:13:33 you wrote: Hi there! I'd like to get a list of enviromentvariables from the *NIX-system. I'd like it in the format... ENV1=x1 ENv2=x2 ENV3=x3 and so on... I think I have to use ENV-command. (http://perldoc.perl.org/Env.html) Is that right? I don't

Re: Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi gustav - At 2005-10-13, 23:42:22 you wrote: Hi! Just a quick question. Can I set or unset an enviromentvariable through this Hash? I just need a yes ... :-) If No, please give explanation... Not really. If you do something like: $ENV{SOMEVAR} = 'somevalue'; SOMEVAR will be available to

Re: using XS for calling exported methods from a DLL

2005-10-14 Thread Beau E. Cox
Hi Sam- At 2005-10-14, 00:05:10 you wrote: Hi Is there a way to call exported methods from a DLL without using win32::API. Has anyone tried calling an exported function from C DLL in a Perl Program using XS. [snipped] YES! First, your error is caused because you need an 'export' library

Re: Re: Re: ENV(Y)?

2005-10-14 Thread Beau E. Cox
Hi Custav - At 2005-10-14, 02:23:59 you wrote: Hi again! I've been looking around... And one thing I don't get. You tell me that SOMEVAR will be available to you in your program and any programs you spawn( with 'system' or backtics). But after your perl script ends, SOMEVAR is lost) and this

Test::Harness and Text::FIGlet

2005-10-13 Thread Beau E. Cox
Hi - I came across a strange problem using Text::FIGlet in a module I am developing. When using '[n]make test' against a test script in my module's test suite that uses Text::FIGlet I get ten hundred million ( ;) ) 'unintellectual' warnings from FIGlet.pm, yet the test succeeds. If I install

Re: is perl a script language?

2004-06-29 Thread Beau E. Cox
On Sunday 27 June 2004 03:06 pm, lfm wrote: hello ,beau I have installed bugzilla on the windows, but failed on the linux! where? the perl module installation! I download the perl module from cpan, tar them and perl Makefile.PL make make test make install But some of

Re: How to call a perl script....

2004-06-25 Thread Beau E. Cox
On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote: Hi How do you call 'n perl script from within a perl script and return to the scripts again. From master script to link script back to master script Thanx You can use the 'system' command: ##--master-- ... my $rc = system perl

Re: is perl a script language?

2004-06-25 Thread Beau E. Cox
On Thursday 24 June 2004 09:46 pm, lfm wrote: if so ,why we will perl Makefile.PL;make;make test; make install during the installation of the perl module if not ,why can perl xxx.pl be executed directly without any other files produce? i am puzzled, very much! Yes, perl is a

Re: is perl a script language?

2004-06-25 Thread Beau E. Cox
On Thursday 24 June 2004 11:09 pm, lfm wrote: thank u Beau but i am stilled puzzled . since it is a script language ,why not we write the *.pm directly and put to the lib directory(or other place) . I opened the *.pm and found there are only text . so ,why we build ? asp need build

Re: How to call a perl script....

2004-06-25 Thread Beau E. Cox
On Friday 25 June 2004 04:30 am, u235sentinel wrote: Beau E. Cox wrote: On Thursday 24 June 2004 08:32 pm, Charlene Gentle wrote: You can use the 'system' command: ##--master-- ... my $rc = system perl slave.pl; ... Does this mean it runs in parallel with the parent Perl Program

Re: Elegant quoted word parsing

2004-06-25 Thread Beau E. Cox
On Sunday 13 June 2004 02:39 am, Jeff 'japhy' Pinyan wrote: On Jun 10, Beau E. Cox said: sub parse_words { my $line = shift; my @words = (); $_ = $line; [snipped] Thank you, japhy, and others who took the time to help me fix my word parsing script I posted several weeks ago

Re: Regx for validating E-Mail addresses

2004-06-24 Thread Beau E. Cox
On Wednesday 23 June 2004 09:29 pm, LRMK wrote: I am using following code to validate e-mail addresses if ($mail =~ m/^(\w+(\.|-))*\w+\@(\w+(\.|-)*)+\w+$/){ valid }else{ invalid } it will give valid results for all of the following e-mail address [EMAIL PROTECTED] [EMAIL

Re: different argv behavior in different machines

2004-06-24 Thread Beau E. Cox
On Wednesday 23 June 2004 10:22 am, PerlDiscuss - Perl Newsgroups and mailing lists wrote: I am a new perl user and I am running into a problem. I am trying to use argv and it's not returning the correct response on my laptop, but it's working fine on another machine. The only difference

Re: calculating http download speed

2004-06-24 Thread Beau E. Cox
On Thursday 24 June 2004 02:07 pm, Radhika Sambamurti wrote: Hi folks, My task is to calculate the download speed taken by a program, that can download images either by ftp, http or smbclient. One way I am thinking of doing this is by calculating the total download size by time taken. getting

Elegant quoted word parsing

2004-06-10 Thread Beau E. Cox
Hi - I am trying to come up with a simple, elegant word parsing script, that: * takes a scalar string, and * splits it into words separating on white space, commas, and a set of delimiters: '' // () {} [] ##, and * returns the array of words. So far I have: #

Re: regular expression

2004-05-28 Thread Beau E. Cox
On Friday 28 May 2004 03:31 pm, Mandar Rahurkar wrote: Hi, I am trying to remove from file : 1. all characters but any alphabet and numbers. 2. all trailing spaces should be made to one space. following code doesnt seem to work for objective [1] mentioned above. Can

Re: regular expression

2004-05-28 Thread Beau E. Cox
On Friday 28 May 2004 05:47 pm, John W. Krahn wrote: Beau E. Cox wrote: On Friday 28 May 2004 03:31 pm, Mandar Rahurkar wrote: for(@cont) { tr/A-Z/a-z/; You forgot the 'g': tr/A-Z/a-z/g; tr/// doesn't have a /g option. perldoc perlop OK. I was thinking s///. John

Re: using environment proxy variables for LWP::Simple

2004-05-24 Thread Beau E. Cox
On Sunday 23 May 2004 08:25 pm, Ramprasad A Padmanabhan wrote: I have got a simple script that is straight out of the man page for Tie::Google. My problem is the script simply hangs. I bet this is because it is not able to use the environment proxy variables I have set my proxy ( requires no

Re: Variable $some_var will not stay shared

2004-05-06 Thread Beau E. Cox
On Thursday 06 May 2004 04:41 am, Wiggins d Anconia wrote: [snip] Generally when I hit an unrecognized warning it is time to check the perldiag docs, perldoc perldiag Conveniently, Variable %s will not stay shared (W closure) An inner (nested) named subroutine is referencing a lexical

Re: Variable $some_var will not stay shared

2004-05-06 Thread Beau E. Cox
On Thursday 06 May 2004 11:40 am, Perrin Harkins wrote: On Thu, 2004-05-06 at 17:19, Beau E. Cox wrote: But maybe I could explain the overall picture. I am trying to embed 'any' script (whthout modification) in perl; I use a perl package (which is run via a c program) to maintain

Re: Date problem

2004-04-26 Thread Beau E. Cox
On Monday 26 April 2004 03:07 am, Alok Bhatt wrote: Hi All, I am facing this strange problem related to dates. When I print the date using the system's date command, it prints correctly. But when I do the same using localtime, it shows the month as wrong (1 month previous. bash-2.03$

Re: Using $_ in a function if no argument is passed

2004-04-02 Thread Beau E. Cox
On Friday 02 April 2004 06:37 am, JupiterHost.Net wrote: Hello List, It just occurred to me that many Perl functions use $_ if not other value is supplied. chomp for instance..., which is very handy... If one wanted to write a function that used either the given argument or $_ how would you

Re: Using $_ in a function if no argument is passed

2004-04-02 Thread Beau E. Cox
On Friday 02 April 2004 07:04 am, Beau E. Cox wrote: On Friday 02 April 2004 06:37 am, JupiterHost.Net wrote: Hello List, It just occurred to me that many Perl functions use $_ if not other value is supplied. chomp for instance..., which is very handy... If one wanted to write

Re: Character Count

2004-03-23 Thread Beau E. Cox
On Tuesday 23 March 2004 11:18 am, Rob Torres wrote: Hello, I am writing a simple perl script to count the # of characters in a given field. At the command line I can write wc -m somefile.txt, and get the total character count. But in the script I am splitting a text file and then doing a

Re: Disable Screensaver with Keyboard input

2004-03-05 Thread Beau E. Cox
On Friday 05 March 2004 02:16 am, Stefan Lubitz wrote: Hi there, I have the problem that after 10 minutes the Screensaver of my PC is getting activated. I am not able to change it, because it is a W2k Domain policy. Now I thought, that I could write a small Perl Script, which is turning on

Re: jump out of conditional loop

2004-03-04 Thread Beau E. Cox
On Thursday 04 March 2004 02:02 am, stephen kelly wrote: hi there what syntax do i use to jump out of a conditional loop for c/java it break; return; what is it in perl syntax thx steve while( ... ) { # or for, foreach, etc. ... last; # == break ... next; # ==

Re: Running a Perl script on windows xp

2004-02-29 Thread Beau E. Cox
On Sunday 29 February 2004 04:32 am, Katia Kermanidis wrote: Hello everyone, To tell the truth I am not really interested in becoming a Perl programmer. I only have one question: I have a Perl script and I would like to run it on Windows xp. Could anyone tell me which Perl I should install

Special variables in XS/C

2003-12-29 Thread Beau E. Cox
Hi - Does anyone know where access to the perl special variables ($!, $@, $/, etc.) from c-code is documented? I can't seem to find any mention in the perl pods (guts, call, api, etc.)? Aloha = Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Special variables in XS/C

2003-12-29 Thread Beau E. Cox
On Monday 29 December 2003 01:36 pm, Randy W. Sims wrote: On 12/29/2003 4:54 PM, Beau E. Cox wrote: Hi - Does anyone know where access to the perl special variables ($!, $@, $/, etc.) from c-code is documented? I can't seem to find any mention in the perl pods (guts, call, api, etc

'unpipe' STDIN

2003-12-20 Thread Beau E. Cox
Hi - I have a perl 'filter' script that relies on piped input from STDIN, i.e.: find /etc/ | ./myfilter.pl etc... I have a need to interact with the user later in this script (or in a forked script), and , hence need STDIN to again accept input from the keyboard device after I process all of

Re: 'unpipe' STDIN

2003-12-20 Thread Beau E. Cox
On Saturday 20 December 2003 06:02 am, Steve Grazzini wrote: On Dec 20, 2003, at 10:44 AM, Beau E. Cox wrote: but I can't seem to figure out how to reopen STDIN to the keyboard device. Any hints? You could use: open STDIN, '/dev/tty' or die open: /dev/tty: $!; Or you could just

Re: Sys:Syslog

2003-11-25 Thread Beau E. Cox
On Tuesday 25 November 2003 06:48 am, drieux wrote: On Monday, Nov 24, 2003, at 15:32 US/Pacific, Beau E. Cox wrote: [..] I'm having trouble logging to syslog on my Linux (Sorcerer) machine with perl 8.0.2 installed. This script logs nothing: #!/usr/bin/perl use strict; use

Sys:Syslog

2003-11-24 Thread Beau E. Cox
Hi - I'm having trouble logging to syslog on my Linux (Sorcerer) machine with perl 8.0.2 installed. This script logs nothing: #!/usr/bin/perl use strict; use warnings; use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('unix'); openlog($0, 'cons,pid', 'user'); syslog('err', 'test error msg');

Re: Sys:Syslog

2003-11-24 Thread Beau E. Cox
On Monday 24 November 2003 03:03 pm, david wrote: Beau E. Cox wrote: Hi - I'm having trouble logging to syslog on my Linux (Sorcerer) machine with perl 8.0.2 installed. This script logs nothing: Oops - perl 5.8.2 [snipped] beefed up the script to: #!/usr/bin/perl use strict; use

Re: Sys::Syslog - RESOLVED, sorta...

2003-11-24 Thread Beau E. Cox
Hi - Switched to Unix::Syslog - #!/usr/bin/perl use strict; use warnings; use Unix::Syslog qw(:macros); # Syslog macros use Unix::Syslog qw(:subs);# Syslog functions openlog $0, LOG_CONS | LOG_PID, LOG_USER; syslog LOG_ERR, 'test error msg'; closelog; Works fine. I have no idea why

Re: Visual Perl

2003-10-24 Thread Beau E. Cox
On Friday 24 October 2003 05:47 am, Victor Medrano wrote: I'm Really interesting in this software , let me know if you find A visual perl . Regards -Original Message- From: Ned Cunningham [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 12:00 PM To: [EMAIL PROTECTED]

Re: system() problem in win98

2003-09-11 Thread Beau E. Cox
- Original Message - From: [EMAIL PROTECTED] To: Perl Beginners [EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 11:23 PM Subject: system() problem in win98 i have the following function call $filename_winword=C:/Program Files/Microsoft Office/Office/WINWORD.EXE;

Re: system() problem in win98

2003-09-11 Thread Beau E. Cox
Yes; that's what I was trying to say! - Original Message - From: Tim Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Beau E. Cox [EMAIL PROTECTED] Cc: Perl Beginners [EMAIL PROTECTED] Sent: Wednesday, September 10, 2003 11:57 PM Subject: RE: system() problem in win98 I think what he

Re: Conditional compilation

2003-09-11 Thread Beau E. Cox
- Original Message - From: Harter, Douglas [EMAIL PROTECTED] To: Beginners Mailing List Perl (E-mail) [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 4:46 AM Subject: Conditional compilation I am writing a Perl script which will run on multiple machines. I have a use Expect; in

Re: eval and __LINE__

2003-09-07 Thread Beau E. Cox
- Original Message - From: Hacksaw [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, September 06, 2003 8:38 PM Subject: eval and __LINE__ Caveat: It's late and I'm tired and frustrated, i.e. I'm pissy. I want to have something like die, but for the web, so I want it to print

Re: 012 and 015 eq \r and\n on what conversion chart?

2003-08-28 Thread Beau E. Cox
Hi - Numeric literals beginning with '0' are OCTAL: \012 == 000 001 010 == 0x0a == decimal 10. Aloha = Beau; == please visit == http://beaucox.com = main site http://howtos.beaucox.com = howtos http://PPM.beaucox.com = perl PPMs http://CPAN.beaucox.com = CPAN == thank you == - Original

Re: I don't understand why this happen

2003-08-18 Thread Beau E. Cox
- Original Message - From: Li Ngok Lam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 18, 2003 1:10 AM Subject: I don't understand why this happen open my $fh, , items/list.db; print while ($fh); close $fh; This is suppose to printout the content in items/list.db , but

Re: Case Statement

2003-07-27 Thread Beau E. Cox
- Original Message - From: Pablo Fischer [EMAIL PROTECTED] To: Perl Beginners [EMAIL PROTECTED] Sent: Saturday, July 26, 2003 1:35 PM Subject: Case Statement Hello Again! I need to evaluate a lot of conditionals, and of course the use of a lot of if's its not the 'right' way, so Im

Inatalled modules

2003-07-19 Thread Beau E. Cox
Hi - I have misplaced my 'installed module version' script, and being lazy today :) , could someone remind me how to list the installed modules/versions present on a system? Nothing fancy. just get me started, please, and I can flesh it out from there... Aloha = Beau; == please visit ==

Re: Inatalled modules

2003-07-19 Thread Beau E. Cox
- Original Message - From: SPENCERS [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, July 19, 2003 6:46 PM Subject: RE: Inatalled modules Here you are Beau, #!/usr/bin/perl -w # list all of the perl modules installed use strict; use

Re: Stopping File::Find [SORTA RESOLVED]

2003-07-14 Thread Beau E. Cox
- Original Message - From: Beau E. Cox [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 5:17 AM Subject: Stopping File::Find Hi - Any way to stop File::Find's directory scanning from the 'wanted' sucroutine? I would like to curtail processing early for while

Re: How to run a shell command but not waiting for the result ?

2003-07-14 Thread Beau E. Cox
- Original Message - From: LI NGOK LAM [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:05 AM Subject: How to run a shell command but not waiting for the result ? I've tried to use exec, system, and ``. And also with and without $| = 1; but seems unable to do what I

Re: Stopping File::Find [SORTA RESOLVED]

2003-07-14 Thread Beau E. Cox
- Original Message - From: Steve Grazzini [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, July 14, 2003 6:12 AM Subject: Re: Stopping File::Find [SORTA RESOLVED] [snipped] sub wanted { if (condition) { $File::Find::prune

Re: errors installing MD5 module

2003-06-26 Thread Beau E. Cox
- Original Message - From: mario kulka [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 6:37 PM Subject: errors installing MD5 module Hi, I'm trying to install the MD5 module and following the steps from CPAN website. I got to the part C. BUILD- by typing:

Regex problem

2003-06-25 Thread Beau E. Cox
Hi All - This script: use strict; use warnings; my $string = 'I love c++'; my $compare = 'some compare string'; if ($compare =~ /$string/) { print $compare contains $string\n; } else { print $compare does not contain $string\n; } gives this error: Nested quantifiers in regex; marked

Re: Regex problem

2003-06-25 Thread Beau E. Cox
Thanks Tim ans Shishir - Works! Aloha = Beau; - Original Message - From: Tim Johnson [EMAIL PROTECTED] To: 'Beau E. Cox' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 5:30 AM Subject: RE: Regex problem Try this: my $string = 'I love c++'; my $compare = 'some

Re: Regex problem

2003-06-25 Thread Beau E. Cox
- Original Message - From: Jeff 'japhy' Pinyan [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 8:45 AM Subject: Re: Regex problem On Jun 25, Beau E. Cox said: my $string = 'I love c++'; my $compare = 'some compare string

Re: Accessing C/C++ Dlls using perl

2003-06-20 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: zentara [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 10:43 PM Subject: Re: Accessing C/C++ Dlls using perl zentara, I'm almost exclusively going to go with inline::c since it adds the power of c

Re: Accessing C/C++ Dlls using perl

2003-06-20 Thread Beau E. Cox
- Original Message - From: Jenda Krynicky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 12:35 AM Subject: Re: Accessing C/C++ Dlls using perl From: Ben Crane [EMAIL PROTECTED] I'm almost exclusively going to go with inline::c since it adds the power of c and

Re: Accessing C/C++ Dlls using perl

2003-06-20 Thread Beau E. Cox
Yes. But you can code a more customized interface using XS or Inline::C. Aloha = Beau; - Original Message - From: NYIMI Jose (BMB) [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED]; Jenda Krynicky [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 20, 2003 1:27 AM Subject: RE

Re: Probably a stupid question

2003-06-20 Thread Beau E. Cox
- Original Message - From: AustinTanney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, June 20, 2003 4:43 AM Subject: Probably a stupid question Hi folks, I'm a total novice and just teaching myself perl. I'm going thru the beginning perl book. One thing about it is that it

Re: Accessing C/C++ Dlls using perl

2003-06-19 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:37 PM Subject: Re: Accessing C/C++ Dlls using perl Beau, Thanx, I hunting the info down now, seems quite complex. I'm wondering whether

Re: Accessing C/C++ Dlls using perl

2003-06-19 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: Beau E. Cox [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 10:37 PM Subject: Re: Accessing C/C++ Dlls using perl Beau, Thanx, I hunting the info down now, seems quite complex. I'm wondering whether

[ANNOUNCE] 5.5.7 Image::Magick Windows ppm for Perl 5.8

2003-06-19 Thread Beau E. Cox
I have recently built and tested Image::Magick module for Windows ActiveState Perl 5.8.0 builds 804 and higher. This module is built on ImageMagick version 5.5.7. Details and full instructions are available at: http://ppm.beaucox.com Aloha = Beau; -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: html files for ppms

2003-06-19 Thread Beau E. Cox
- Original Message - From: Jenda Krynicky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 2:41 AM Subject: Re: html files for ppms From: Beau E. Cox [EMAIL PROTECTED] I have some custom html documentation I want to include in a ppm for distribution. Where

Re: h2xs works fine: can't find new module though?

2003-06-19 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 3:36 AM Subject: Re: h2xs works fine: can't find new module though? Hey all, Followed the instructions for using h2xs and everything seems okay. Problem is, when I try

Re: How to retrieve a MAC address

2003-06-19 Thread Beau E. Cox
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 6:24 AM Subject: How to retrieve a MAC address Hi All, I need to retrieve the MAC address of my local system from a Perl script. I'm running RedHat 7.2. Can anyone point me to some

Re: How to retrieve a MAC address

2003-06-19 Thread Beau E. Cox
- Original Message - From: John W. Krahn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, June 19, 2003 8:42 AM Subject: Re: How to retrieve a MAC address Beau E. Cox wrote: Attached is a small perl script (ifinfo) I wrote to parse ifconfig. It gives most

Re: Accessing C/C++ Dlls using perl

2003-06-18 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 1:07 AM Subject: Accessing C/C++ Dlls using perl Hi all, I've tried this question in a forum dedicated to MITAB dlls (it's a series of c/c++ libraries designed to access

html files for ppms

2003-06-18 Thread Beau E. Cox
Hi - I have some custom html documentation I want to include in a ppm for distribution. Where should I put them for inclusion in my ppm ('(n)make ppm')? I am overiding the ppm section in MakeMaker; can I copy them to somewhere in 'blib' for inclusion in the generated module.tar.gz? Is there a

Re: File::Copy - Additional Parameters?

2003-06-12 Thread Beau E. Cox
- Original Message - From: Ben Crane [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:21 PM Subject: RE: File::Copy - Additional Parameters? Yep, I've thought of that, but with so many files (it's an internal backup) I don't want to slow the process down by

Re: Appending to beginning of file?

2003-06-05 Thread Beau E. Cox
- Original Message - From: Josh Berkus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 11:17 AM Subject: Appending to beginning of file? Folks, Hit there! I just joined the list. Amazing what one can do with rudimentary web-browsing skills. Is there any easy

HELP: Windows reboots running a Perl script under heavy stress.

2003-06-04 Thread Beau E. Cox
Hi folks - I'm working on a project to embed Perl in one of my servers (ala mod_perl). As part of my test suite I have a 'stress test'. Under Linux this test works fine - it has been run continually for up to 4 days without problems. The _same_ test under Windows (I'm using Windows 2000 Pro with

Re: Using Wildcards when matching a string(sentence)

2003-06-04 Thread Beau E. Cox
- Original Message - From: Jay Waheed [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:14 AM Subject: Using Wildcards when matching a string(sentence) I am running a while loop, where I am comparing a string, but I want to use a wild card towards the end. Can

Re: bypassing use strict

2003-06-04 Thread Beau E. Cox
- Original Message - From: Paul Morris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 3:00 PM Subject: bypassing use strict Hi #!/usr/bin/perl use strict; $a = 123; #slips through strict $b = 123; #slips through strict $c = 123; #caught by strict Is

Re: Urgent : Can I override #! defn. through any command line option ??

2003-06-04 Thread Beau E. Cox
- Original Message - From: T.S. Ravi Shankar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:04 PM Subject: Urgent : Can I override #! defn. through any command line option ?? Hi all : My perl programme has a PERL path defined at its

Re: count of words (fields) after split

2003-06-01 Thread Beau E. Cox
- Original Message - From: Richard Müller [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 31, 2003 8:04 AM Subject: count of words (fields) after split Hi, I'm a very newbie with perl. I have a text file and want to read it line by line and split it into words: my @fields =

Re: Returning arrays from subroutines... how?

2003-06-01 Thread Beau E. Cox
- Original Message - From: Ken Tozier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 31, 2003 5:24 PM Subject: Returning arrays from subroutines... how? I'm sure this is an easy one but after Googling for hours, I still don't get it. Given the following subroutine, how

RE: single line condition statement with semicolon

2003-03-05 Thread Beau E. Cox
Hi - -Original Message- From: Dan Muey [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 6:33 AM To: [EMAIL PROTECTED] Subject: single line condition statement with semicolon Hello What I want to do is assign the value of $_[1] to $m unless it's empty then assign

RE: Simple Regex Problem.

2003-03-04 Thread Beau E. Cox
Hi - -Original Message- From: Gregg R. Allen [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 2:16 PM To: Hanson, Rob Cc: Gregg R. Allen; [EMAIL PROTECTED] Subject: Re: Simple Regex Problem. It was close but what I got is : JohnDoe.com Instead of [EMAIL PROTECTED]. I

RE: General ftp question

2003-03-03 Thread Beau E. Cox
Hi - -Original Message- From: Ebaad Ahmed [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 3:00 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: General ftp question Hello All, I have just installed SuSe on my computer, I can ftp to any ftpsite from this but cannot

RE: Programs - Flow Charts

2003-03-03 Thread Beau E. Cox
Hi - -Original Message- From: Paul Kraus [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: Programs - Flow Charts Does anyone use flow charts to help them with program design. What software tools do you use to put down what you want

  1   2   3   4   >