passing hashes between subroutines

2001-06-04 Thread Nic LAWRENCE
Is it possible to pass hashes between subroutines? When I try stuff like &foo(%bar); or return %bar; it doesn't seem to work how I would expect. :-/ Nic LAWRENCE <[EMAIL PROTECTED]> Technical Director TFBnet Internet Services http://www.niclawrence.co.uk eFax US: +1 (253)295

Re: How to delete an element in array?

2001-05-29 Thread Nic LAWRENCE
Ignore me if i'm talking poo, (especially since I didn't see the original message),... but surely splice() would be best suited for working with an ARRAY, but you all seem to be talking about hashes... sooo - Original Message - From: "Brett W. McCoy" <[EMAIL PROTECTED]> To: "Walt Ma

RE: Sorting

2001-05-10 Thread Nic LAWRENCE
Oooo... I like that... more or less the same as Peter suggested but a little more self contained ... gonna have to remember that kinda structure. thnx i'll try it out :) > -Original Message- > From: Paul [mailto:[EMAIL PROTECTED]] > Sent: 10 May 2001 10:41 > To: Nic LA

RE: Regexp Question

2001-05-10 Thread Nic LAWRENCE
How about this? if (/PT\s*\(?(\w+)\)?/) { $value = $1; } PTMatches the PT \s* Matches any number (or no) spaces \(? Matches one or none ('s (\w+) Matches one or many word characters \)? Matches one or none )'s $1Value caught by (\w+) I think. .. .. maybe. > At 05:13 PM 5/10/20

RE: check to see if file exists.

2001-05-10 Thread Nic LAWRENCE
Never seen system with that syntax before... here's what I'd do though: if (-e $file) { if (unlink $file) { warn "File $file WAS removed."; } } That's just my first guess though having not tested it. :) > -Original Message- > From: Peter Lemus [mailto:[EMAIL PROTECTED]] > Sent:

Sorting

2001-05-10 Thread Nic LAWRENCE
Can anybody suggest the most efficient method to do the following... I have an array of email aliases like the following: [EMAIL PROTECTED]: sys [EMAIL PROTECTED]: coookiecom [EMAIL PROTECTED]: niccicamcom [EMAIL PROTECTED]: katyland-

RE: sysread and buffering

2001-04-24 Thread Nic LAWRENCE
Woah! Perl has a getc() function?!! /me goes to look it up! :) Schwing! > -Original Message- > From: Sean O'Leary [mailto:[EMAIL PROTECTED]] > Sent: 24 April 2001 10:16 > To: [EMAIL PROTECTED] > Subject: Re: sysread and buffering > ... > > But all that's moot, considering that Perl has ge

RE: cat a file

2001-04-19 Thread Nic LAWRENCE
"copy /b" in windows is a binary copy eg. copy /b file1 + file2 file3 or "type" type file1 >> file2 maybe? what exactly are you trying to acomplish? I'm not at all sure you'll be able to combine .pst files outside of the application which built them > -Original Message- > From: Dr

RE: how to execute a windows 2000 command with perl

2001-04-19 Thread Nic LAWRENCE
Peter, You should have no problems executing binaries using the system() function,.. but if you're having problems with shell commands like "dir" etc, you should try something like: system("c:\winnt\system32\cmd.exe /c dir c:\mydir"); Alternatively there are modules available which will more th

use strict;

2001-04-16 Thread Nic LAWRENCE
Thought I'd have a go at securing one of my scripts after Ray's question about security. When using "strict", I am told the following: Scalar value @views_keys[$k] better written as $views_keys[$k] at ./newremote2.pl line 327. Scalar value @_[0] better written as $_[0] at ./newremote2.pl line 342

RE: Perl CGI Security

2001-04-16 Thread Nic LAWRENCE
Actually that's a good question which I should look in to myself too. Especially seeing as I'm self taught .. (goes to check out the url you gave)... What type CGI are you going to be writing? > -Original Message- > From: Ray Calkins 100660207 [mailto:[EMAIL PROTECTED]] > Sent: 16 April

RE: hi?

2001-04-15 Thread Nic LAWRENCE
Absolutely not. > -Original Message- > From: the cut throat party (for self defense) > [mailto:[EMAIL PROTECTED]] > Sent: 15 April 2001 4:35 > To: [EMAIL PROTECTED] > Subject: hi? > > > > new to the list... anyone alive? > > Jim S. > > "getting drunk by yourself is not sick... >