Which DBD -Module do I need??

2001-05-31 Thread perl . mail
Hello, i will connect from Unix ( Client HP -UX OS) to a Microsoft SQL 7.0 database (SQL-Server Windows NT OS). I have installed the DBI Module, but I don' t know, which DBD - Module I am installing additionally?? Best Regards Hasan -- Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1! htt

Re: SPLIT QUESTION

2001-05-31 Thread Piers Cawley
Jeff Pinyan <[EMAIL PROTECTED]> writes: > On May 31, Pedro A Reche Gallardo said: > > >How can I split a string of caracters -any but blank spaces- into > >the individual caracters? > > So you want to split "what's up, doc?" into > > @chars = qw( w h a t ' s u p , d o c ? ); > > That is

Re: test for real number

2001-05-31 Thread Piers Cawley
Paul <[EMAIL PROTECTED]> writes: > BTW, this is another use of the same sort of trick as > > { local $/ = undef; > $file = ; # slurp the whole file into $file > } > > which is more efficient than > >while() { $file .= $_ } > > or > >$file = join '', ; > > Still, I have a co

Best Music Modules?

2001-05-31 Thread Adam Theo
hello, all. i am working on an alarm clock program, and am now looking into adding music playing ability for the alarms into it. I am wanting people's opinions on what module(s) to use to play music from my perl program. it is a perl/tk program, just in case that makes a difference, and hope to m

Re: a bit of assistance on style

2001-05-31 Thread Jeff Pinyan
On Jun 1, Steve said: >use File::stat; >use time::local; Heh, that's windows for you. use time::local; works on windows, but you meant to write use Time::Local; You see, on windows, 'time/local.pm' and 'Time/Local.pm' are the same thing, because the OS is case-insensitive. However, when

a bit of assistance on style

2001-05-31 Thread Steve
I have the following code that I wanna use to see if a file is older than today's date ( further along the line if it is I want to delete it but one thing at a time) It's a little rough and has a lot of lines in I use for debugging but if I get an idea if I am in the right direction. $filenam

Apache::ASP help

2001-05-31 Thread K Old
Hello everyone, I know that Apache::ASP might be a little off topic, but I don't really know anyplace else to ask this question that I'm sure I'll get a valid response. I'm using Apache::ASP and it works fine. What I'd like to do is use it and have some ASP code write to a Microsoft Access da

Re: Passing Data via ReDirect/Refresh

2001-05-31 Thread Me
> passing data (somewhat large) during a REFRESH > or a REDIRECT. Forms with method=get (in the tag) are limited to about 2kbytes. method=post allows large data transfers. hth. If you need more help, you might want to head over to the beginners-cgi list.

Re: MAIL::POP3

2001-05-31 Thread Me
The Mail::POP3Client module is not part of the standard module set, so you have to get it from somewhere. Most modules are on CPAN. So: > I dloaded... was sort of the right step. But you also need to install it (usually just means putting it in the right location). Certainly: > renamed it to

Passing Data via ReDirect/Refresh

2001-05-31 Thread David E Culp - RR
Help ! Does anyone had a suggestion on passing data (somewhat large) during a REFRESH or a REDIRECT. I've tried using a standard query string, i.e. x.com/abc.cgi?someparm=$somedata , but I've seen to hit the limit. Also , I played around with cookies with the same result. As a last resort

MAIL::POP3

2001-05-31 Thread KeN ClarK
I haven't done much of anything yet. But of course figured out how fetchmail can do this and send it to my user locally. So that is working. BUT, if a perl script that is cron'd will use less resources, I'd prefer that. Plus, I need to learn Perl. It fails when it use Mail::POP3Client; because I

Re: getting pop & forwarding it to local

2001-05-31 Thread Me
> Found module at CPAN but not sure it is what I want. > MAIL::POP3Client was it. ANYone use this? Other > ideas? I have tried it but had no luck. Not > sure if I am barking up a wrong tree... The right tree, perhaps the wrong bark. What have you done? What happened? Paste your code into an ema

Re: syswrite issue

2001-05-31 Thread Manish Tiwari
Thanx everybody michael your answer seems logical too Interesting enough the file created by syswrite is 2147483647 ..do we have any way around this using perl..so that we get bigger file i mean up to 4gb as i had 5Gb space on sun machine with version 5.8...i got a file with 2G although i

getting pop & forwarding it to local

2001-05-31 Thread KeN ClarK
Want to retrieve email from ISP pop server and view it locally. running sendmail. use PINE. Found module at CPAN but not sure it is what I want. MAIL::POP3Client was it. ANYone use this? Other ideas? I have tried it but had no luck. Not sure if I am barking up a wrong tree... As you see have pre

RE: Output to a file.

2001-05-31 Thread blowther
As far as I can see, the prints for output are going to the console, not a file. The statement you're referring to: __END__ flat2rdb.pl sitelist.str.fo has very little to do with the perl script. The __END__ tells the perl interpreter to not compile/run anything after the __END__ line. So the

Re: Output to a file.

2001-05-31 Thread Me
> When this is done running will it > generate a file called sitelist.str.fo ? Based on a quick glance at the script, the stuff after the __END__ token is not being used by the script. So... > if($QWFLAT eq '') > { > print "Enter QW flatfile file name -> "; > chomp($QWFLAT = ); > } Thi

Re: DBI

2001-05-31 Thread Johnathan Thibodeau
Once you've connected to your database with connect(), you can run any valid SQL query (and whatever non-standard MySQL querys) you want by calling prepare(SQL query) on the database object, and then execute() on the prepare'ed object. Confused? Maybe not, but I'm sure someone out there is. Time

Re: thank you

2001-05-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Nichole Bialczyk <[EMAIL PROTECTED]> whispered : | i just wanted to let everyone know that i appreciate all of the time that | you spent on me (especially today). my log script runs absolutely | beautifully and my boss loves me! what else could i ask for?

Output to a file.

2001-05-31 Thread Robert . Clayton
I've never written a line of perl before ... and I've only been lurking on the list for three hours or so. But I've been presented some code which was written for Unix and I'm trying to run on NT using ActiveState Perl. It converts a flat file from the USGS to a format we can get into our SQL dat

RE: [OT] RE: Good job everybody!

2001-05-31 Thread Mark S
Hear Hear! -Original Message- From: Joe Boro [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 6:54 PM To: [EMAIL PROTECTED] Subject: [OT] RE: Good job everybody! I would like to add thanks for the patience of the people responding to some very basic questions. I have been lurkin

Re: syswrite issue

2001-05-31 Thread Elaine -HFB- Ashton
Brett W. McCoy [[EMAIL PROTECTED]] quoth: *> *>I think Solaris 8 & higher, the limit is something like 4 or 8 terabytes. *>For all intents and purposes, it's unlimited. Nope, 7 is good too..first 64-bit Solaris. And if you need one file that's 4 terabytes, you need something more than a sparc :)

DBI

2001-05-31 Thread Michael Risser
I'm trying to write a Perl script which will connect to a MySQL database and create certain tables if they do not already exist. Is there a way to send a query such as "SHOW TABLES" and read the result into a variable for parsing? Michael D. Risser Mac

Re: Net::SMTP and Bcc Usage

2001-05-31 Thread Michael Fowler
On Thu, May 31, 2001 at 06:43:34PM +, scott lutz wrote: > I have looked through all of the doc and even searched CPAN, but can find no > reference to using the Bcc feature. > > # Send the header. > $smtp->datasend("To: test <$address_1>\n"); > $smtp->datasend("Bcc: test2 <$address_2>\n"); >

Re: report format/output question

2001-05-31 Thread Brian Warn
Uh, never mind. I expected the output to display to STDOUT. When I opened the 'rpt' file, voila! there sat my report. - Original Message - From: "Brian Warn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 3:50 PM Subject: report format/output question Hello,

my own answer

2001-05-31 Thread KeN ClarK
post about whether syntax of snippet with mail data being correct--it is. I didn't read his mail but did change the script to send to me instead. It works!!! Thanks for everything else... Ken -- _ [EMAIL PROTECTED] http://www.quantifier.org _ If

Re: split - maxSplit

2001-05-31 Thread David Olbersen
On Thu, 31 May 2001, Brian Shoemaker wrote: > I've never used the maxSplit parameter in my scripts. By not using the > maxSplit parameter am I slowing things down? As per `perldoc -f split` If LIMIT is specified and positive, splits into no more than that many fields (though it may split into f

Re: syswrite issue

2001-05-31 Thread Michael Fowler
On Thu, May 31, 2001 at 02:23:42PM -0700, Manish Tiwari wrote: > how big a file can be created using syswrite ..it fails generally over 2G It depends on restrictions imposed by your OS, filesystem, and the underlying C libraries Perl uses. You're probably hitting a 2G limit because of the data t

Re: split - maxSplit

2001-05-31 Thread Jeff Pinyan
On May 31, Brian Shoemaker said: >($id,$dir,$code,$etc) = split(/\|/,$i); > >However, the Perl 5 book I have lists the syntax of split as. > >lvalue = split(/pattern/,expression,maxSplit); Perl can automatically add that argument if you have a known number of elements on the left-hand side:

Re: syswrite issue

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Elaine -HFB- Ashton wrote: > Solaris 2.6 instroduced large file support by allowing files up to 2GB. > With 7 and up in 64-bit mode it is unlimited. I think Solaris 8 & higher, the limit is something like 4 or 8 terabytes. For all intents and purposes, it's unlimited. > Sol

split - maxSplit

2001-05-31 Thread Brian Shoemaker
I have numerous files where I do the following Within in a foreach loop I use.. ($id,$dir,$code,$etc) = split(/\|/,$i); However, the Perl 5 book I have lists the syntax of split as. lvalue = split(/pattern/,expression,maxSplit); I've never used the maxSplit parameter in my scripts

Re: syswrite issue

2001-05-31 Thread Elaine -HFB- Ashton
Brett W. McCoy [[EMAIL PROTECTED]] quoth: *> *>Are you using it on an x86 system? It's only 32 bits, and I think can *>only support up to 2G files. Solaris 2.6 instroduced large file support by allowing files up to 2GB. With 7 and up in 64-bit mode it is unlimited. Solaris x86 is still 32-bit

question

2001-05-31 Thread KeN ClarK
Acquired this script that will email data entered on form. Simple enough. Email does arrive but with what appeared as template information. So, I edited that part of the script. My question is (provided the rest of the script performs correctly) is the below snippet right? This is where the email

[OT] RE: Good job everybody!

2001-05-31 Thread Joe Boro
I would like to add thanks for the patience of the people responding to some very basic questions. I have been lurking around the list trying to pick out what I needed at the moment and have been amazed at the replies, both in how quick them come and how helpful they are. I am a student and just

report format/output question

2001-05-31 Thread Brian Warn
Hello, I'm trying to do something fairly simple: read in colon-delimited data from a file and output it to the screen first. After that is OK, I want to send it in an email. The syntax checks out OK, but nothing outputs. Does anyone see what I'm missing? Thanks, Brian -

Re: Using C code with perl

2001-05-31 Thread Brett W. McCoy
On Fri, 1 Jun 2001, Paul Johnson wrote: > What version of Perl are you using? If it is from ActiveState then you > may need to match your environment somewhat to the environment under > which that perl was built. I think this means you will need Visual C++ > and nmake, but it may now be possibl

Re: Using C code with perl

2001-05-31 Thread Paul Johnson
On Thu, May 31, 2001 at 09:13:23AM -0700, C.Ouellette wrote: > I believe I should have added that I am currently in a > Windows NT environment. My condolences. But at least you're not using 95 or 98. Then you really would have problems. > So I guess the follow-up question would be which of

thanks

2001-05-31 Thread Nichole Bialczyk
thank you. it's funny. i tried %s, but i thought that it meant spaces after looking at my data. i didn't know that it was right justified :) so that little '-' comes in handy! nichole

Good job everybody!

2001-05-31 Thread David Olbersen
I'd just like to say that I'm really impressed with how quickly you can get a question answered on this list. Keep up the good work everybody! -- Dave

Re: sprintf

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Nichole Bialczyk wrote: > i know that for numbers you can use sprintf %u, %i etc > > is there something similair for alphnumerics? %s is used to print a string, %c is used to print a character, %% is used to print a percent sign... To learn more about sprintf, type 'perldoc

Re: sprintf

2001-05-31 Thread Ken
%s prints out strings For a complete list look at: perldoc -f sprintf Skip to the part that begins(about the second 24 line page): Perl's "sprintf" permits the following universally-known conversions - Original Message - From: "Nichole Bialczyk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

sprintf

2001-05-31 Thread Nichole Bialczyk
i know that for numbers you can use sprintf %u, %i etc is there something similair for alphnumerics? nichole

Re: syswrite issue

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Manish Tiwari wrote: > SunOs > release 5.8 Are you using it on an x86 system? It's only 32 bits, and I think can only support up to 2G files. -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225 [EMAIL PROTECTED]

Re: syswrite issue

2001-05-31 Thread Elaine -HFB- Ashton
Manish Tiwari [[EMAIL PROTECTED]] quoth: *>how big a file can be created using syswrite ..it fails generally over 2G Depends on your OS and if your Perl is compiled with large file support. If I remember right, largefile support is, by default, enabled on platforms that support it in versions 5.6

syswrite issue

2001-05-31 Thread Manish Tiwari
how big a file can be created using syswrite ..it fails generally over 2G thanx in advance regards manish

Re: syswrite issue

2001-05-31 Thread Manish Tiwari
SunOs release 5.8 - Original Message - From: "Brett W. McCoy" <[EMAIL PROTECTED]> To: "Manish Tiwari" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, May 31, 2001 2:37 PM Subject: Re: syswrite issue > On Thu, 31 May 2001, Manish Tiwari wrote: > > > how big a file can be cre

Re: syswrite issue

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Manish Tiwari wrote: > how big a file can be created using syswrite ..it fails generally over 2G That's OS & filesystem dependent and cannot be overcome with Perl. What OS are you using? -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225 [EMAIL PROTEC

Re: Installing modules in a different file

2001-05-31 Thread Elaine -HFB- Ashton
Mark Ross [[EMAIL PROTECTED]] quoth: *>Hi all, *> *>I was wondering if someone could point me in the direction where I could *>find out how, if even possible, to install Perl modules in a different *>directory (like /cgi/module_library/). I don't have root access to the *>server. Is there a way ar

syswrite issue

2001-05-31 Thread Manish Tiwari
how big a file can be created using syswrite ..it fails generally over 2G thanx in advance regards manish

Re: test for real number

2001-05-31 Thread Paul
List, I got this paragraph in recent correspondence with someone off-list: > I'm not so much discouraged as realize that I need a bit more time > with Perl before I can understand most of what gets passed around in > the list. I'll be back in a couple of months. From my short exposure, > it seem

Re: unknown CPAN variables

2001-05-31 Thread Elaine -HFB- Ashton
Paul Cotter [[EMAIL PROTECTED]] quoth: *>Can someone explain the following. The file /etc/inputrc certainly has the 'wrong' lines in it, but I am loathe to delete them without understanding what I am doing. (mmm, I wonder where I screwed up..) It Pays to read the documentations kids. >From t

Installing modules in a different file

2001-05-31 Thread Mark Ross
Hi all, I was wondering if someone could point me in the direction where I could find out how, if even possible, to install Perl modules in a different directory (like /cgi/module_library/). I don't have root access to the server. Is there a way around this? Thanks, Mark Ross

Re: SPLIT QUESTION

2001-05-31 Thread Paul
--- Jeff Pinyan <[EMAIL PROTECTED]> wrote: > On May 31, Paul said: > > >Still, though, won't that return all the *strings* as elements, > rather > >than the individual characters? and wouldn't \S* solve that > difference? > > We're only matching ONE character at a time: > > @all_chars = $st

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread Timothy Kimball
Paul Hodges wrote: : Try flipping the hash. : : my %flipped; : @flipped{values %HASH} = keys %HASH; : : That makes the keys of %HASH the values of %flipped, with the matching : values of %HASH being the keys to which they are assigned. : Now just do it the easy way. : : for my $key (sort ke

Re: SPLIT QUESTION

2001-05-31 Thread Jeff Pinyan
On May 31, Paul said: >Still, though, won't that return all the *strings* as elements, rather >than the individual characters? and wouldn't \S* solve that difference? We're only matching ONE character at a time: @all_chars = $str =~ /./sg; @all_ws = $str =~ /\s/g; @all_non_ws = $str

Re: thank you -- cup o' joe

2001-05-31 Thread Nichole Bialczyk
i don't really deal with coffee too much, but i got a 24 pack of Dew in the fridge! On Thu, May 31, 2001 at 02:05:24PM -0700, Paul wrote: > > --- Nichole Bialczyk <[EMAIL PROTECTED]> wrote: > > i just wanted to let everyone know that i appreciate all of the time > > that > > you spent on me (e

RE: Sorting a hash by value, and displaying the key

2001-05-31 Thread Paul
--- "Maynard, Garth" <[EMAIL PROTECTED]> wrote: > Caution: if you have any data that is repetitive, you will lose > information during the flipping process. An excellent point. Shouldn't be the case here, since the values were the order of entry, but it needed pointing out.

Re: SPLIT QUESTION

2001-05-31 Thread Paul
--- Jeff Pinyan <[EMAIL PROTECTED]> wrote: > On May 31, Paul said: > > >> my @chars = $string =~ /\S/g; > > > >I've seen a couple of people doing this, and maybe I'm just > confused, > >but > > > >Isn't the point of the original request to split into the original > >characters, but leave *ou

RE: Sorting a hash by value, and displaying the key

2001-05-31 Thread Maynard, Garth
Caution: if you have any data that is repetitive, you will lose information during the flipping process. Subject: Re: Sorting a hash by value, and displaying the key --- David Michael <[EMAIL PROTECTED]> wrote: > Hello, > I have a hash that needs to be displayed in a certain order. I > tri

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread Paul
--- Paul <[EMAIL PROTECTED]> wrote: > > --- David Michael <[EMAIL PROTECTED]> wrote: > > Hello, > > I have a hash that needs to be displayed in a certain order. I > > tried > > > > foreach $key (sort (keys %HASH)) { > > print $key; > > } > > > > that sorts alphabeti

thank you

2001-05-31 Thread Nichole Bialczyk
i just wanted to let everyone know that i appreciate all of the time that you spent on me (especially today). my log script runs absolutely beautifully and my boss loves me! what else could i ask for? now about that raise. :) nichole

Re: SPLIT QUESTION

2001-05-31 Thread Jeff Pinyan
On May 31, Paul said: >> my @chars = $string =~ /\S/g; > >I've seen a couple of people doing this, and maybe I'm just confused, >but > >Isn't the point of the original request to split into the original >characters, but leave *out* the spaces? > >and isn't \S any nonspace? > >So, if you split

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread Paul
--- David Michael <[EMAIL PROTECTED]> wrote: > Hello, > I have a hash that needs to be displayed in a certain order. I > tried > > foreach $key (sort (keys %HASH)) { > print $key; > } > > that sorts alphabetically. I need it in the order it was > inserted, so I made

Using Perl with multiple processors on NT

2001-05-31 Thread Tim Hayes
I have written a script that uses the Perl DBI and the DBD-ODBC modules to connect to a SQL Server database. The script is running rather slowly, and the performance monitor shows that the machine is using only one of the 8 processors. Is this most likely a problem with the configuration of NT Se

Re: SPLIT QUESTION

2001-05-31 Thread Paul
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > > "Pedro" == Pedro A Reche Gallardo > <[EMAIL PROTECTED]> writes: > > Pedro> How can I split a string of caracters -any but blank spaces- > into > Pedro> the individual caracters? > > my @chars = $string =~ /\S/g; I've seen a couple

Re: SPLIT QUESTION

2001-05-31 Thread Paul
--- Pedro A Reche Gallardo <[EMAIL PROTECTED]> wrote: > Hi all, > How can I split a string of caracters -any but blank spaces- into > the individual caracters? > Cheers I'd say @chars = split /\s*/, $string; That will split between characters that have any number of spaces between them -

RE: array of variables

2001-05-31 Thread Paul
--- "Hill, Ronald" <[EMAIL PROTECTED]> wrote: > try > use vars qw($sec $min $hour $mday $mon $year); This will satisfy strict, but in case anyone wonders, these are still globals. If you do this in the main body of your program, these are actually $main::sec, $main::min, ... $main::year. That

Re: Printing has me confused

2001-05-31 Thread Ken
Well, I made a wild stab in the dark and though you might have a control character at the end of something. When I run this code(note the \r at the end of rname): $ltr = "LETTER"; $rname = "MICROFILM\r"; $numltrs = 4; $rdate = "30May01"; $pdate = "31May01"; $cntr=1; $new_fn="$ltr.$rname.$numltrs

RE: unknown CPAN variables

2001-05-31 Thread Jeffrey Goff
It's just bad formatting. Just change 'on' to 'On' and vice versa for 'off'. No need to delete any lines. -Original Message- From: Paul Cotter [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 4:28 PM To: [EMAIL PROTECTED] Subject: unknown CPAN variables Can someone explain the fo

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread rob chanter
On Thu, May 31, 2001 at 02:41:32PM -0500, David Michael wrote: > Hello, > I have a hash that needs to be displayed in a certain order. I tried > > foreach $key (sort (keys %HASH)) { > print $key; > } > > that sorts alphabetically. I need it in the order it was inserte

unknown CPAN variables

2001-05-31 Thread Paul Cotter
Can someone explain the following. The file /etc/inputrc certainly has the 'wrong' lines in it, but I am loathe to delete them without understanding what I am doing. (mmm, I wonder where I screwed up..) [root@prc /root]# perl -MCPAN -e shell Warning [/etc/inputrc line 4]: Invalid value `on'

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread Timothy Kimball
David Michael wrote: : I have a hash that needs to be displayed in a certain order. I tried : : foreach $key (sort (keys %HASH)) { : print $key; : } : : that sorts alphabetically. I need it in the order it was inserted, so I made the :value a number that increased f

Re: Sorting a hash by value, and displaying the key

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, David Michael wrote: > Hello, > I have a hash that needs to be displayed in a certain order. I tried > > foreach $key (sort (keys %HASH)) { > print $key; > } > > that sorts alphabetically. I need it in the order it was inserted, > so I made the value a

Re: writing to a text file ... sorry

2001-05-31 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Nichole Bialczyk <[EMAIL PROTECTED]> whispered : | i'm sorry. i didn't think that you guys would want me to include my code. | i just assumed that i should try to make my question to the point with as | little text as possible. i am still having the same pr

Re: a whole NEW problem! yeah!

2001-05-31 Thread Peter Scott
At 02:44 PM 5/31/01 -0500, Nichole Bialczyk wrote: >so how do i get around that? Make the file writable by whatever user the CGI processes run under. Sucks, doesn't it? >On Thu, May 31, 2001 at 02:35:03PM -0500, Me wrote: > > > when i run my log script in unix > > > > it runs with your permissi

RE: a whole NEW problem! yeah!

2001-05-31 Thread Jeffrey Goff
I had this problem last week. Delete the logfile before running it from the webserver. The webserver will recreate the file with the proper permissions. -Original Message- From: Me [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 3:35 PM To: Nichole Bialczyk; [EMAIL PROTECTED] Subj

Re: a whole NEW problem! yeah!

2001-05-31 Thread Nichole Bialczyk
so how do i get around that? On Thu, May 31, 2001 at 02:35:03PM -0500, Me wrote: > > when i run my log script in unix > > it runs with your permissions > > > when i run my log script in IE > > it runs with the CGI's permissions, > as controlled by the sys admin that > set up the web server. >

Re: a whole NEW problem! yeah!

2001-05-31 Thread Me
> when i run my log script in unix it runs with your permissions > when i run my log script in IE it runs with the CGI's permissions, as controlled by the sys admin that set up the web server.

Re: writing to a text file ... sorry

2001-05-31 Thread David Olbersen
On Thu, 31 May 2001, Jeff Pinyan wrote: > Mortal::Kombat (by me) allows you to say: > > flawless victory; # to end a program successfully > > and > > fatality "you have been thoroughly thrashed"; # like die() Oh japhy, you rule. `perl -MCPAN -e shell;` here I come! -- Dave

Sorting a hash by value, and displaying the key

2001-05-31 Thread David Michael
Hello, I have a hash that needs to be displayed in a certain order. I tried foreach $key (sort (keys %HASH)) { print $key; } that sorts alphabetically. I need it in the order it was inserted, so I made the value a number that increased for each key. I need to sort by

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Jeff Pinyan wrote: > >The Koi or Mortal Kombat modules are good substitutes. :-) > > Heh, I think you mean Coy. Koi is a type of fish. ;) So is Carp. Coy (or Koi) are similar, only prettier. :-) -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225 [EMAI

Re: writing to a text file ... sorry

2001-05-31 Thread Jeff Pinyan
On May 31, Brett W. McCoy said: >> NEVER tell a random browser what your error message is! >> >> AT BEST, you simply say "it broke, we know about it, sorry". > >The Koi or Mortal Kombat modules are good substitutes. :-) Heh, I think you mean Coy. Koi is a type of fish. ;) Coy (by Damian Conway

Re: SPLIT QUESTION

2001-05-31 Thread Randal L. Schwartz
> "Pedro" == Pedro A Reche Gallardo <[EMAIL PROTECTED]> writes: Pedro> How can I split a string of caracters -any but blank spaces- into Pedro> the individual caracters? my @chars = $string =~ /\S/g; -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On 31 May 2001, Randal L. Schwartz wrote: > Just remember to turn that off before you deploy the code for production. > > NEVER tell a random browser what your error message is! > > AT BEST, you simply say "it broke, we know about it, sorry". The Koi or Mortal Kombat modules are good substitutes

Re: SPLIT QUESTION

2001-05-31 Thread Brett W. McCoy
> How can I split a string of caracters -any but blank spaces- into > the individual caracters? Try something like this: my @arr = split //, "sometext"; foreach $i (@arr) { print "$i\n"; } -- Brett Brett W. McCoy Software Engineer Broadsoft, Inc. 240-364-5225 [EMAIL PROTECTED]

Re: SPLIT QUESTION

2001-05-31 Thread Jeff Pinyan
On May 31, Pedro A Reche Gallardo said: >How can I split a string of caracters -any but blank spaces- into >the individual caracters? So you want to split "what's up, doc?" into @chars = qw( w h a t ' s u p , d o c ? ); That is, every character except spaces? First, remove spaces from t

Re: closed filehandle

2001-05-31 Thread Randal L. Schwartz
> "Morbus" == Morbus Iff <[EMAIL PROTECTED]> writes: Morbus> open(PIPE_TO, "your-filename"); Morbus> print PIPE_TO "burp!"; Morbus> close PIPE_TO; Morbus> print PIPE_TO "sadness"; Morbus> The "burp" line will print to the file correctly (assuming we were Morbus> able to creat

Re: writing to a text file ... sorry

2001-05-31 Thread Randal L. Schwartz
> "Brett" == Brett W McCoy <[EMAIL PROTECTED]> writes: Brett> Actually, if you use the CGI:Carp module (and import fatalsToBrowser), you Brett> can reduce this to a single line: Brett> use CGI::Carp qw(fatalsToBrowser); Just remember to turn that off before you deploy the code for productio

a whole NEW problem! yeah!

2001-05-31 Thread Nichole Bialczyk
when i run my log script in unix, it works and writes to the log. when i run my log script in IE, it can't open the file. permissions on the file are 777. thanks, nichole

SPLIT QUESTION

2001-05-31 Thread Pedro A Reche Gallardo
Hi all, How can I split a string of caracters -any but blank spaces- into the individual caracters? Cheers - -- *** PEDRO a. RECHE gallardo, pHDTL: 617 632 3824 Scientist, Mol.Immnunol.Foundation, FX: 617

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Craig Moynes/Markham/IBM wrote: > unless(open(LOG,">$logfile")) { > print "Content-type: text/html\n\n"; > print "Couldn't open $logfile. $!\n"; > print "At $date, $ENV{'REMOTE_HOST'} couldn't enter the site."; > exit; Actually, if you use the CGI:Car

Re: writing to a text file ... sorry

2001-05-31 Thread Paul
--- Nichole Bialczyk <[EMAIL PROTECTED]> wrote: > i'm sorry. i didn't think that you guys would want me to include my > code. i just assumed that i should try to make my question to the > point with as little text as possible. i am still having the same > problem (and i do have the "). Better to

Re: writing to a text file ... sorry

2001-05-31 Thread Craig Moynes/Markham/IBM
HANG ON :) Brain kicked into gear after I sent the last message. open() returns a positive value if it succeeds ...what you want is | | V unless(open(LOG,">$logfile")) { print "Content-type: text/html\n\n"; print "Couldn't open $logfile. $!\n"; print "At $date, $ENV{'REMOTE_

Re: you all are going to laugh at me

2001-05-31 Thread Morbus Iff
>i can't believe this. the whole problem is this: instead of working on my >work's afs account, i'm copying over the scripts to my account just in >case something goes wrong. well, i just moved to a different office and i >realized (just now) that i was using binary instead of ascii. > >than

you all are going to laugh at me

2001-05-31 Thread Nichole Bialczyk
i can't believe this. the whole problem is this: instead of working on my work's afs account, i'm copying over the scripts to my account just in case something goes wrong. well, i just moved to a different office and i realized (just now) that i was using binary instead of ascii. so i have was

Re: writing to a text file ... sorry

2001-05-31 Thread Brett W. McCoy
On Thu, 31 May 2001, Nichole Bialczyk wrote: > i'm sorry. i didn't think that you guys would want me to include my code. > i just assumed that i should try to make my question to the point with as > little text as possible. i am still having the same problem (and i do > have the "). here is my ex

RE: array of variables

2001-05-31 Thread Hill, Ronald
so i've discovered the wonders of use strict; (it wasn't in my tutorial) and i'm trying to declare this array: my @timelog($sec,$min,$hour,$mday,$mon,$year) = localtime(time)[0,1,2,3,4,5]; and i get the error: Global symbol "$sec" requires explicit package name etc etc i tried putting 'my' be

Net::SMTP and Bcc Usage

2001-05-31 Thread scott lutz
I have looked through all of the doc and even searched CPAN, but can find no reference to using the Bcc feature. # Send the header. $smtp->datasend("To: test <$address_1>\n"); $smtp->datasend("Bcc: test2 <$address_2>\n"); $smtp->datasend("From: $myname <$myemail>\n"); $smtp->datasend("\n"); I a

Re: Ca't locate loadable object for module...

2001-05-31 Thread Dan Brown
Margit Brunder wrote: > > I get the error message "can't locate loadable object for module > HTML::Parser in @INC at ./HTML/entities.pm line 79" > although the module Parser.pm is in the same directory as entities.pm > The path where Parser.pm is located is included in @INC !! Some modules

Re: closed filehandle

2001-05-31 Thread Morbus Iff
>what does a closed filehandle error mean? i'm trying to write to a log >and yes, the permissions for the directory and the log are 777. A closed filehandle means that the pipe (ie., the tunnel that connects your perl script to the innards of the file) is no longer there. See the examples bel

Re: writing to a text file ... sorry

2001-05-31 Thread Nichole Bialczyk
i'm sorry. i didn't think that you guys would want me to include my code. i just assumed that i should try to make my question to the point with as little text as possible. i am still having the same problem (and i do have the "). here is my exact code: sub log { if (open(LOG,">$logfile"))

  1   2   >