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
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
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
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
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
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
, 123456, 1234567, 12345678,
123456789, 1234567890);
foreach my $integer (@integers) {
substr($string,15,10)=sprintf %10d,$integer;
print $string\n;
}
HTH
Alistair
--
Alistair McGlinchy, [EMAIL
--
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
--
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
:
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
--
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
--
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
--
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
($_,:))} @db},
# Index solution using for
For_Index =
sub { my @sdb; for (@db) {push @sdb,
substr($_,0,index($_,:))}},
})
--
Alistair McGlinchy, [EMAIL PROTECTED]
Sizing
--
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
15 matches
Mail list logo