Newbie and Perl+Mail Questions

2003-07-04 Thread Pablo Fischer
Hi all! My name is Pablo Fischer and Im a little new in Perl, however I have a project where I need to parse mails and send mails: I receive 2 files (contacts and arguments), I get 2000 mail adds from the file, so I need to make packages of 100 mails with differents email adds, When I have the

Re: testing an argument's type

2003-07-04 Thread John W. Krahn
David Storrs wrote: > > I've got a function that takes several arguments, the first of which > should be a scalar (specifically, a string). I'd like to have a > precondition to verify that the argument is, in fact, a scalar. Is > there a way to do that (preferably without using modules--I'm tryi

Re: Beginnner .. please help

2003-07-04 Thread John W. Krahn
Pandey Rajeev-A19514 wrote: > > Hi, Hello, > I am new to perl and need some help. > > How do we pass array of scalars to a subroutine. > I need something like this Perl creates a list of all the arguments of the sub and makes them available in the @_ array inside the sub. > *

Re: testing an argument's type

2003-07-04 Thread Steve Grazzini
On Fri, Jul 04, 2003 at 02:18:40PM -0700, David Storrs wrote: > I've got a function that takes several arguments, the first of > which should be a scalar (specifically, a string). I'd like to > have a precondition to verify that the argument is, in fact, a > scalar. I'll recommend that you *do

Re: testing an argument's type

2003-07-04 Thread Casey West
It was Friday, July 04, 2003 when David Storrs took the soap box, saying: : I've got a function that takes several arguments, the first of which : should be a scalar (specifically, a string). I'd like to have a : precondition to verify that the argument is, in fact, a scalar. Is : there a way to

NTFS permissions cleanup

2003-07-04 Thread Jenda Krynicky
Does anyone have a script that would scan through the filesystem, review the permissions and report/remove the superfluous ones. I mean if I set Full Control to users A and B and groups D and C, it's quite possible that one of the users belongs to one of the groups or that one of the groups con

testing an argument's type

2003-07-04 Thread David Storrs
I've got a function that takes several arguments, the first of which should be a scalar (specifically, a string). I'd like to have a precondition to verify that the argument is, in fact, a scalar. Is there a way to do that (preferably without using modules--I'm trying to write an entirely self-co

Re: Beginnner .. please help

2003-07-04 Thread Jenda Krynicky
From: Pandey Rajeev-A19514 <[EMAIL PROTECTED]> > I am new to perl and need some help. > > How do we pass array of scalars to a subroutine. > I need something like this > > *** > sub ABC { > my(@buffer) shift; > print @buffer; my $buffer = shift; print @$buff

Beginnner .. please help

2003-07-04 Thread Pandey Rajeev-A19514
Hi, I am new to perl and need some help. How do we pass array of scalars to a subroutine. I need something like this *** sub ABC { my(@buffer) shift; print @buffer; } I want to call this subroutine from some other code like. ABC( @this_buffer ); **

Re: help : file transfer

2003-07-04 Thread zentara
On 4 Jul 2003 03:38:50 -, [EMAIL PROTECTED] (Vemulakonda Uday Bhaskar) wrote: >i have got a code for file transger between two linux systems >through ssh >here is the code You should use Net::Sftp or Net::Scp to transfer files. I see what you are trying to do. You probably should try to ope

Authenticating to the proxy---anyone ?

2003-07-04 Thread Aman Thind
Sorry, don't mean to nag you all by asking again but thought I might be lucky to get atleast one reply this time @:) I thought this was a very typical situation most of us would have found ourselves at some point of time...proxies occur as commonly as perl itself...I reconfigured ppm and it asked m

[OT] 4th of July

2003-07-04 Thread NYIMI Jose (BMB)
To all Perl developers in America Have a GREAT Independence Day. Regards José Nyimi Belgium. DISCLAIMER "This e-mail and any attachment thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the

Weekly list FAQ posting

2003-07-04 Thread casey
NAME beginners-faq - FAQ for the beginners mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email address):

write from others to a file (was Re: beginners Digest 4 Jul 2003 03:39:18 -0000 Issue 1662)

2003-07-04 Thread Jenda Krynicky
From: Navjot Kaur <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Copies to: [EMAIL PROTECTED] Subject:Re: beginners Digest 4 Jul 2003 03:39:18 - Issue 1662 1) [EMAIL PROTECTED] is the address where you should send only questions about the mailing li

Re: formatting a number

2003-07-04 Thread Jenda Krynicky
From: Robert Citek <[EMAIL PROTECTED]> > Hello all, > > I want to format a number so that it has commas as a separator. > Here's the code I came up with: > > my $num=12345678; > print scalar reverse( join(",", grep( /./ ,split > (/(...)/,reverse($num), "\n"; > > This works but was wondering

Re: multiline matching

2003-07-04 Thread Rob Dixon
Mark Sony wrote: > Hi all, > > I am writing a program which will print variety of matches > having > keywords like insert,delete etc from another file .For this I > wrote a couple of sub routines one of which returns an > array(having the comments removed ).Then I face the problem : > A part of tha

Re: Slightly offtopic question...

2003-07-04 Thread Rob Dixon
Gabor Urban wrote: > Rob Dixon wrote: > > Gabor Urban wrote: > > > Hi guys, > > > > > > I know, this problem is slightly offtopic on this list. I am > > > submitting multiple HTTP POST requests to Apache. The first request > > > gets handled properly, but from the second one Apache logs incorrect >

print!?!

2003-07-04 Thread Charles Scheepers
Hi I wrote a program to read hex data and format the records and then output the formatted records in ASCII format to a file. The program is supposed to work on Win32 and UNIX (HP-UX). Everything works fine except for information (stats and errors) that I want to print to the screen. F

Getting the list of installed softwares of Windows 2000 machines

2003-07-04 Thread sudhir chauhan
Dear All,    How i can get the list of installed softwares from a Windows 2000/XP machine using perl. Regards, sudhir Send free SMS using the Yahoo! Messenger. Go to http://in.mobile.yahoo.com/new/pc/ -- To unsubscribe

Re: formatting a number

2003-07-04 Thread Janek Schleicher
Robert Citek wrote at Thu, 03 Jul 2003 18:48:02 -0500: > I want to format a number so that it has commas as a separator. Here's the > code I came up with: > > my $num=12345678; > print scalar reverse( join(",", grep( /./ ,split > (/(...)/,reverse($num), "\n"; > > This works but was wonderin

multiline matching

2003-07-04 Thread mark sony
Hi all, I am writing a program which will print variety of matches having keywords like insert,delete etc from another file .For this I wrote a couple of sub routines one of which returns an array(having the comments removed ).Then I face the problem : A part of that array is : CURSOR c_efc(l_wo