Re: Getting file access rights

2005-04-12 Thread Alexander Apprich
Johannes, Johannes Kilian wrote: Hi there, I want to determine, what's the reason of "File does not exist" response, using the -e operator (if (!(-e $filename)) {...} The reason might be (for example): * file is really not available * the user does not have sufficient rights to access the file ("Ac

Re: How to list and delete files more than x days old..

2005-04-12 Thread Alexander Apprich
Chris Wagner wrote: Yeah, just use the Cygwin find command. It's different from Windows's find. Once u install Cygwin (cygwin.com) u can look at 'man find' or find --help to see the options u need. Example that lists files older than 30 days: find.exe ./ -mtime +30 -exec ls -la {}; At 02:24 PM

Getting file access rights

2005-04-12 Thread Johannes Kilian
Hi there, I want to determine, what's the reason of "File does not exist" response, using the -e operator (if (!(-e $filename)) {...} The reason might be (for example): * file is really not available * the user does not have sufficient rights to access the file ("Access denied")... How do I get

Threads Synchronization

2005-04-12 Thread Plymouth Rock
 My script uses threads module for creation several threads. Each thread printscertain letter for several times via some pause. Kind of letter, number of times,length of pause are different for every thread. These threads should be work inparallel. Also, I have to synchronize all starts of t

RE: Globbing

2005-04-12 Thread Rahul Chauhan
andrew, if you are using paths, 1. escape the directory separator 2. and if the folder names have a space, use the dos 8.3 format. as in glob "C:\\Docume~1\\BlackA\\*.txt"; cheers, -Original Message- From: andrew Black [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 2:43 PM

Re: How to list and delete files more than x days old..

2005-04-12 Thread Chris Wagner
Yeah, just use the Cygwin find command. It's different from Windows's find. Once u install Cygwin (cygwin.com) u can look at 'man find' or find --help to see the options u need. Example that lists files older than 30 days: find.exe ./ -mtime +30 -exec ls -la {}; At 02:24 PM 4/12/05 +0530, Maxm

Re: Comparing strings

2005-04-12 Thread Chris Wagner
If ur SQL supports unique indexes (I don't know why it wouldn't) u can let it take care of the unique records problem. Decide what fields constitute a "unique record" and make that a primary key, the database won't allow those records to be duplicated. Then all u have to do is fire everything u'v

Re: Repeated message

2005-04-12 Thread Chris Wagner
Nah it's something wrong with Listserv. I've had two posts vanish. At 03:24 PM 4/12/05 -0700, Lyle Kopnicky wrote: >Am I the only one who received the following message eight times >yesterday? Is something wrong with the listserv or is it on my side? -- REMEMBER THE WORLD TRADE CENTER

RE: eh? RE: Globbing

2005-04-12 Thread Charles K. Clarkson
Chris Wagner wrote: : Dang, what's wrong with ur mail server. This is like copy 10 of this. I unsubscribed and I'm not sending email. All my other email is received fine. It's only this list. [shrug] Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 _

Re: Repeated message

2005-04-12 Thread Phil Dobbin
Lyle Kopnicky wrote: Am I the only one who received the following message eight times yesterday? Is something wrong with the listserv or is it on my side? No I'm getting duplicates of virtually every message that's posted. Being new to this particular Perl list, is it worth bringing it to the at

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

Re: change IE proxy settings

2005-04-12 Thread Ing. Branislav Gerzo (mail-lists)
Paul Sobey [PS], on Monday, April 11, 2005 at 15:19 (+0100) wrote about: PS> There will be an API call, but why not put it in a logon script and PS> avoid the necessity for this? If you're doing one-off work use PS> Win32::Internet and work that way... ok, thanks for all replies, after some hour

Re: Inline::CPP

2005-04-12 Thread Lloyd Sartor
Lloyd Sartor wrote on 04/11/2005 10:01:15 AM: > "Sisyphus" <[EMAIL PROTECTED]> wrote on 04/08/2005 05:23:42 PM: > > I get an unusual error: Can't open perl script "and" when testing. > > $ perl makefile.pl > This will configure and build Inline::C++. > What default C++ compiler would you like t

Repeated message

2005-04-12 Thread Lyle Kopnicky
Am I the only one who received the following message eight times yesterday? Is something wrong with the listserv or is it on my side? - Lyle Kopnicky Charles K. Clarkson wrote: andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something

Re: Inline::CPP

2005-04-12 Thread Sisyphus
- Original Message - From: "Lloyd Sartor" <[EMAIL PROTECTED]> To: "Sisyphus" <[EMAIL PROTECTED]> > > I assume you are using VC++ 6.0. > > I am using Microsoft Visual C++ Toolkit 2003 installed per > http://aspn.activestate.com/ASPN/docs/ActivePerl/lib/Pod/perlwin32.html. > However, > I

Re: Comparing strings

2005-04-12 Thread Chris Wagner
If ur SQL supports unique indexes (I don't know why it wouldn't) u can let it take care of the unique records problem. Decide what fields constitute a "unique record" and make that a primary key, the database won't allow those records to be duplicated. Then all u have to do is fire everything u'v

RE: Comparing strings

2005-04-12 Thread Peter Eisengrein
> > (1) use string length (number of characters a string holds): > > $length = length($name); > I'd stay away from this as it will eventually let you down. For example: my $str1 = 'I'd stay away from this as it will eventually let you down.' my $str2 = 'My Mom will not stop looking at Internet

Re: Comparing strings

2005-04-12 Thread Chris Wagner
If ur SQL supports unique indexes (I don't know why it wouldn't) u can let it take care of the unique records problem. Decide what fields constitute a "unique record" and make that a primary key, the database won't allow those records to be duplicated. Then all u have to do is fire everything u'v

eh? RE: Globbing

2005-04-12 Thread Chris Wagner
Dang, what's wrong with ur mail server. This is like copy 10 of this. At 09:04 PM 4/11/05 -0500, Charles K. Clarkson wrote: >andrew Black <> wrote: > >: $myprog.pl *.html >: >: and the program is basically >: while ( <> ) >: { do something } >: >: Is there a way of achieving th

Re: String formatting

2005-04-12 Thread $Bill Luebkert
Hsu, David wrote: > > Hi all, > > I am working with GD::Graph and I am retrieving some data from a DB and > formatting the data into a string that I can use for graphing. > my @data = ($data1); > My $myGraph = GD::Graph::lines->new(400,300); > ... > > The problem is that my formatted string of

Jack Roth/Inv/MetLife/US is in training and out of the office.

2005-04-12 Thread Jack Roth
I will be out of the office starting 04/11/2005 and will not return until 04/15/2005. If you need assistance for Mainframe call Don Sperling or Danny Null. For Distributed, call Don Sperling or Prabu Doraisingam The information contained in this message may be CONFIDENTIAL and is for the inte

How to list and delete files more than x days old..

2005-04-12 Thread Maxmelbin Neson (RBIN/EDM3)
Title: How to list and delete files more than x days old.. Hi , Could anyone tell me whether there is any simple way to list and delete all files on the local drives on a system which is say more than 30 days old . It should not look into Network drives or say CD drives or floppy drives …

Re: Inline::CPP

2005-04-12 Thread Daniel Schroeer
On Mon, 11 Apr 2005, Lloyd Sartor wrote: > I get an unusual error: Can't open perl script "and" when testing. > t\01basic.Can't open perl script "and": No such file or directory > Failed to autogenerate C:\Documents and Settings\a1027277\My > Documents\Perl\Inli > ne-CPP\Inline-CPP-0.25\_Inl

Re: Globbing

2005-04-12 Thread andrew Black
Rahul Chauhan wrote: andrew, this should work. #glob.pl my @Files = glob "*.c"; print @Files; Thanks for the various replies. I have now got a further problem. I am having trouble globbing files with spaces in them. When I run the following, I would like all files of type *.txt my $wildfile = "

Re: Inline::CPP

2005-04-12 Thread Lloyd Sartor
Lloyd Sartor wrote on 04/11/2005 10:01:15 AM: > "Sisyphus" <[EMAIL PROTECTED]> wrote on 04/08/2005 05:23:42 PM: > > I get an unusual error: Can't open perl script "and" when testing. > > $ perl makefile.pl > This will configure and build Inline::C++. > What default C++ compiler would you like t

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

gui activex control

2005-04-12 Thread mailware
hi all, what win32-api calls can i make in order to create a client-side activex gui control that can be embedded in an application or internet explorer, using perlctrl. I realize this cannot be done *just using* perlctrl code. What perl win32::api calls can be made to make it work, and in wh

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

String formatting

2005-04-12 Thread Hsu, David
Hi all, I am working with GD::Graph and I am retrieving some data from a DB and formatting the data into a string that I can use for graphing. my @data = ($data1); My $myGraph = GD::Graph::lines->new(400,300); ... The problem is that my formatted string of data is not in the correct format and

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6

Re: Globbing

2005-04-12 Thread $Bill Luebkert
Alexander Apprich wrote: > Andrew, > > andrew Black wrote: > >>In Unix, if you provide a list of wildcards on the command line, by the >>time you program sees the list of files. >>I have program that I call on Unix >> >>$myprog.pl *.html >> >>and the program is basically >>while ( <>

RE: Globbing

2005-04-12 Thread Charles K. Clarkson
andrew Black <> wrote: : $ myprog.pl *.html : : and the program is basically : while ( <> ) : { do something } : : Is there a way of achieving the same on Win32, hopefully in : a way that would still allow my script to run under Unix? This works on my win XP box with 5.8.6