RE: Stupid Definite Question

2003-06-05 Thread Alistair . McGlinchy
Title: Message Leon: From: Leon [mailto:[EMAIL PROTECTED] This may seem done but I cant seem to figure out the difference. What is the difference between a function and a method? It kind of seems like methods are functions of modules. Check out perltoot - Tom's object-oriented tutorial

RE: How does my default get undefined?

2003-02-13 Thread Alistair . McGlinchy
Richard, %hash_default = %hash; This does not copy the arrays or hashes referenced in the values of the hash. Remember a hash is an associative list of scalars. %hash = ($key1, $value1); So if you say: %hash_default = %hash; %hash_default is now equal ($key1, $value1); If

RE: question about grep

2003-02-13 Thread Alistair . McGlinchy
Eric I'm in a pretty-code-mode at the moment, my apologies for the overkill. #location contains the path for the report to be stored $report_location = $location; $report_location =~ s/\//\\/; To make this regex look a bit better you can use a different delimiter rather than /. Also you

RE: question about grep

2003-02-13 Thread Alistair . McGlinchy
Eric, -Original Message- From: Hawley, Eric [mailto:[EMAIL PROTECTED]] actually I think I see what is wrong with the code. At first I was reading the wrong variable which was producing just the word Status and second after looking at the grep function again it looks as though

RE: memory usage issue

2003-02-10 Thread Alistair . McGlinchy
All, I wonder if James is referring to a problem I had a couple of years back http://aspn.activestate.com/ASPN/Mail/Message/915295 I (rather clumsily) posted a bug at Activestate http://bugs.activestate.com//ActivePerl/show_bug.cgi?id=18559 But, I'm pleased to report that this problem is fixed

RE: Formatting Numbers (was RE: reverse of substr?)

2002-04-17 Thread Alistair . McGlinchy
formats. (I feel the cloud of shame creeping over me). I still contend that it's a much better method of formatting numbers though. [...sheepishly leaves the scene of the crime] :-) Alistair -- Alistair McGlinchy

RE: reverse of substr?

2002-04-16 Thread Alistair . McGlinchy
, 123456, 1234567, 12345678, 123456789, 1234567890); foreach my $integer (@integers) { substr($string,15,10)=sprintf %10d,$integer; print $string\n; } HTH Alistair -- Alistair McGlinchy, [EMAIL

RE: One-liners

2002-03-26 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From: Paul Bo Peaslee [SMTP:[EMAIL PROTECTED

RE: still have problem with rmdir on w2k

2002-02-27 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From

RE: URGENT: problem executing external commands in my perlscript

2002-02-13 Thread Alistair . McGlinchy
: Be very careful when deleting, moving or copying files like command.com. You could potentially corrupt your hard drive or stop your machine from booting. Proceed with caution (etc) Alistair -- Alistair McGlinchy, [EMAIL

RE: Zero-suppression Regex

2002-02-12 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From: Dirk

RE: regular expr. help

2002-01-14 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From: eckart [SMTP:[EMAIL

RE: Identifying Solaris machines using a Win32 Perl script?

2002-01-10 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From: Geoffrey Leeming [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January

RE: modifying (splitting) elements of an array

2002-01-10 Thread Alistair . McGlinchy
($_,:))} @db}, # Index solution using for For_Index = sub { my @sdb; for (@db) {push @sdb, substr($_,0,index($_,:))}}, }) -- Alistair McGlinchy, [EMAIL PROTECTED] Sizing

RE: Format number

2002-01-10 Thread Alistair . McGlinchy
-- Alistair McGlinchy, [EMAIL PROTECTED] Sizing and Performance, Central IT, ext. 5012, ph +44 20 7268-5012 Marks and Spencer, 3 Longwalk Rd, Stockley Park, Uxbridge UB11 1AW, UK -Original Message- From