Re: CPAN viruses

2002-06-08 Thread Elaine -HFB- Ashton
[EMAIL PROTECTED] [[EMAIL PROTECTED]] quoth: *>Hello: *>Just downloaded my first CPAN module (woo-hoo). What risks are *>associated with installing these modules? Are they checked for viruses, *>etc. before posting? No more than with anything else you download from the net and install onto a sy

shifting solved (was "Re: chomp-ing DOS lines, shifting, and a variable variable")

2002-06-08 Thread David T-G
Hi, all -- ...and then David T-G said... % ... % I can't modify $fullpath because I'll use it later, but for parsing I % don't need the leading "/mp3/" part, and the only way I've found to get % rid of it elegantly is % % ... % @working = split(/\//,$fullpath) ;# cut path

Re: no chop chop - Re: chomp-ing DOS lines, shifting, and a variable variable

2002-06-08 Thread David T-G
drieux, et al -- ...and then drieux said... % % On Saturday, June 8, 2002, at 04:47 , David T-G wrote: % [..] % > ... % >... % >chop ; chop ;# strip \n\r (no chomp here) ... % % that is way too weird - since that means that what % ever dos app you were using

no chop chop - Re: chomp-ing DOS lines, shifting, and a variable variable

2002-06-08 Thread drieux
On Saturday, June 8, 2002, at 04:47 , David T-G wrote: [..] > > The files were written in DOS format (\r\n or, I am more inclined to > think, \n\r) and chomp doesn't work; instead I have to > > ... > while (<>) > { > ... > chop ; chop ; # strip \n\r (no c

Preference problem - Re: $FORM in Matt's wwwboard.pl

2002-06-08 Thread drieux
On Saturday, June 8, 2002, at 10:47 , Sven Bentlage wrote: > I'm just looking at Matt's wwwboard.pl and try to figure out what the > $FORM{somevaule} does. > It is not declared anywhere before usage.. and I'm quite lost... I will take the time in the pickle barrel to recommend that you look at

chomp-ing DOS lines, shifting, and a variable variable

2002-06-08 Thread David T-G
Hi, all -- [I should probably note early on that I do have some preferences that don't match what many coders do but which I will very probably continue anyway, like how I place braces, but that I quite welcome perl style tips along with the rest of the answers begged below because lots of the ot

$FORM in Matt's wwwboard.pl

2002-06-08 Thread Sven Bentlage
Hi guys, I'm just looking at Matt's wwwboard.pl and try to figure out what the $FORM{somevaule} does. It is not declared anywhere before usage.. and I'm quite lost... If anyone could tell me where to find any information about that, I'd be grateful Thanks for your help, Sven sub where it's

Re: Changing a map on an HL server via Perl

2002-06-08 Thread drieux
On Saturday, June 8, 2002, at 02:07 , Joey Tesmer wrote: [..] > I am new to the list *bows* so please don't hurt me :) We take no prisoners We can't afford the cost of maintaining them... 8-) > My first question...I manage the dedicated Half-Life server at LAN > parties so being as lazy as

straight walk v. do loop was Re: Help with Ranges

2002-06-08 Thread drieux
On Saturday, June 8, 2002, at 04:49 , John W. Krahn wrote: [..] > for ( split/(\d+-\d+(?::\d+)?),?/ ) { > next unless /\d/; > @x = /(\d+)/g; > if ( /-/ ) { > print "@x", @x == 2 ? " 1\n" : "\n"; > } > else { > do { > @y = (); > unsh

Changing a map on an HL server via Perl

2002-06-08 Thread Joey Tesmer
Hello all, I am new to the list *bows* so please don't hurt me :) My first question...I manage the dedicated Half-Life server at LAN parties so being as lazy as I am I want to make things easier for myself, so I decided to make a script in Perl that would change the map on the server. However, I

Re: Specifing path and files in Win32

2002-06-08 Thread David T-G
Beau -- ...and then Beau E. Cox said... % ... % PS: What's the deal with the spam in your signature? That's the price one pays for sending from one's "free" account. You hadn't ever noticed before? HTH & HAND :-D -- David T-G * It's easier to fight for one's principles

Re: Strip Characters from a particular field

2002-06-08 Thread David T-G
Fred -- Would you please fix your addressing from <> so that replies will work properly? ...and then Fred Sahakian said... % % Hi Folks, Hello! % % $value =~tr/+/ /; will remove the "+" from all the form fields and replace it with a space, how can I ask the program to remove the "+" fro

RE: Specifing path and files in Win32

2002-06-08 Thread Timothy Johnson
There are two ways. Providing you aren't using the system() or exec() functions, you can just use forward slashes: c:/winnt/file.txt You can also use backslashes, but since that is the character used for escaping other characters, you have to use two backslashes: c:\\winnt\\file.txt -Or

Re: file i/o problem

2002-06-08 Thread drieux
On Saturday, June 8, 2002, at 06:57 , aman cgiperl wrote: > I have a code that looks like the following this thread has been redirected to the cgi-beginner's mailing list in the hopes that those folks will be more capable of dealing with those issues - those interested in following it there - c

RE: Specifing path and files in Win32

2002-06-08 Thread Beau E. Cox
Hi - You may always use '/' in Perl: $fileName = 'c:/winnt/file.txt'; Aloha => Beau. PS: What's the deal with the spam in your signature? -Original Message- From: david odell [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 2:38 PM To: beginners perl Subject: Specifing pat

file i/o problem

2002-06-08 Thread aman cgiperl
I have a code that looks like the following $pgs = 1000; $lks = "Welcome Message"; for($i=0;$i<$pgs;$i++){ open PGIN, "/$char/$mn/index_tmp".$i.".html"; open PGOUT, ">/$char/$mn/index".$i.".html"; while() { $_ =~ s/##MS

Re: Help with Ranges

2002-06-08 Thread John W. Krahn
Rasoul Hajikhani wrote: > > Hello folks, Hello, > I am trying not to re-invent the wheels. So I was wondering whether > there is a little program that you good people might know of the would > do the following for me: > > Here's an example: > > input: 1,2,3,4,5,6,17-25,32-101:4 > output: > 1

Specifing path and files in Win32

2002-06-08 Thread david odell
how do I specifiy a file such as c:\winnt\file.txt in perl ? Thanks ___ WIN a first class trip to Hawaii. Live like the King of Rock and Roll on the big Island. Enter Now! http://r.lycos.com/r/sagel_mail/http://www.elvis.lycos.com/sweepstakes

Re: binary files

2002-06-08 Thread Felix Geerinckx
on Fri, 07 Jun 2002 23:28:44 GMT, Eric Abell wrote: > My question is this: what is the difference between "c" and "C"? I > know what perldoc says - one is a signed char and the other is an > unsigned char. So if I have the value 230, shouldn't that be illegal > for a signed 8-bit number, since th