Re: macros

2002-10-18 Thread Randal L. Schwartz
>>>>> "Duarte" == Duarte Cordeiro <[EMAIL PROTECTED]> writes: Duarte> (the question being: how can I do macros within perl, and how can I pass "things" to the perl interpreter? ) <http://search.cpan.org/author/DCONWAY/Filter-Simple-0.78/>

RE: macros

2002-10-18 Thread Beau E. Cox
Hi - Yea, I just tried a c preprocessor, but, guess what? All perl comments (they start with # remember) gave 'invalif preprocessor directives... Oh, well... Aloha => Beau. PS: Duarte, have you searched CPAN for a "macros" mod? -Original Message- From: Paul Jo

Re: macros

2002-10-18 Thread Paul Johnson
eck out the -P option to Perl. But I'd suggest that is not a good solution to most problems. > Hi, > > in C: > #ifndef __DEBUG__ > #define MYD(x) x > #else > #define MYD(x) > #endif > > and in perl ? > > (the question being: how can I do macros within per

macros

2002-10-18 Thread Duarte Cordeiro
Hi, in C: #ifndef __DEBUG__ #define MYD(x) x #else #define MYD(x) #endif and in perl ? (the question being: how can I do macros within perl, and how can I pass "things" to the perl interpreter? ) or is there any other approach to this ? Thanks in advance, Duarte -- Dua

RE: macros

2002-10-18 Thread Duarte Cordeiro
2002 1:11 PM > To: Paul Johnson > Cc: Duarte Cordeiro; [EMAIL PROTECTED] > Subject: RE: macros > > > Hi - > > Yea, I just tried a c preprocessor, but, guess what? > All perl comments (they start with # remember) gave > 'invalif preprocessor directives... >

RE: macros

2002-10-17 Thread Beau E. Cox
Subject: macros Hi, in C: #ifndef __DEBUG__ #define MYD(x) x #else #define MYD(x) #endif and in perl ? (the question being: how can I do macros within perl, and how can I pass "things" to the perl interpreter? ) or is there any other approach to this ? Thanks in advance, Duarte

FW: eqvt. to MACROS

2002-02-12 Thread Lawrence Liew
Hi there, Jenda suggested that I post my question on this list. Right. I want to merge 4 RTF documents into a single doc because they're of different parts, after being converted from Framemaker. For example: BrisCasAgrA92_01B_.rtf (3rd) BrisCasAgrA92_01B_C.rtf (1st) BrisCasAgrA92_01B_E.rtf (4t

Re: Any feature equivalent to Macros of C?

2001-09-20 Thread Jeff 'japhy/Marillion' Pinyan
On Sep 20, G Lakshmi said: >if (index($OSNAME,"Win",0) > -1) >{ >use Win32::Process; >} That will ALWAYS try to include the Win32::Process module, regardless of the rest of your program. 'use' statements are executed at compile-time, while the rest of the code is executed at run-time. You'll w

Re: Any feature equivalent to Macros of C?

2001-09-20 Thread Pete Sergeant
> It works fine on Windows NT. On Solaris, it gives the foll error message: > > Can't locate Win32/Process.pm in @INC (@INC > contains: /usr/perl5/5.00503/sun4-so > laris /usr/perl5/5.00503 /usr/perl5/site_perl/5.005/sun4-solaris > /usr/perl5/site > _perl/5.005 .) at sim.pl line 3. > BEGIN failed

Any feature equivalent to Macros of C?

2001-09-20 Thread G Lakshmi
Hi, I tried the following script: if (index($OSNAME,"Win",0) > -1) { use Win32::Process; } It works fine on Windows NT. On Solaris, it gives the foll error message: Can't locate Win32/Process.pm in @INC (@INC contains: /usr/perl5/5.00503/sun4-so laris /usr/perl5/5.00503 /usr/perl5/site_pe

Re: Macros concept?

2001-07-17 Thread Michael Fowler
On Tue, Jul 17, 2001 at 08:04:39AM -0700, [EMAIL PROTECTED] wrote: > > Rajanikanth Dandamudi <[EMAIL PROTECTED]> said: > > > Is there a concept of macros in perl, i.e. > > Is there some thing like preprocessor processing > > in perl. Thanks in advance. (

Re: Macros concept?

2001-07-17 Thread Paul
--- [EMAIL PROTECTED] wrote: > > Rajanikanth Dandamudi <[EMAIL PROTECTED]> said: > > > Is there a concept of macros in perl, i.e. > > Is there some thing like preprocessor processing > > in perl. Thanks in advance. > > Nto that I am aware of. I hav

Re: Macros concept?

2001-07-17 Thread smoot
> Rajanikanth Dandamudi <[EMAIL PROTECTED]> said: > Is there a concept of macros in perl, i.e. > Is there some thing like preprocessor processing > in perl. Thanks in advance. Nto that I am aware of. I have preprocessed perl scripts with the m4 macro preprocessor,

Resend - Macros concept?

2001-07-16 Thread Rajanikanth Dandamudi
Hello, Is there a concept of macros in perl, i.e. Is there some thing like preprocessor processing in perl. Thanks in advance. -- Thanks and Regards, D.Rajanikanth -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Macros concept?

2001-07-16 Thread Rajanikanth Dandamudi
Hello, Is there a concept of macros in perl, i.e. Is there some thing like preprocessor processing in perl. Thanks in advance. -- Thanks and Regards, D.Rajanikanth