From: Paul Mc Auley (pmcauley at domain iol.ie)
Date: Tue 03 Sep 2002 - 13:14:47 IST
On Tue, 3 Sep 2002 11:54:36 +0100
"John P. Looney" <valen at domain tuatha.org> wrote:
| Every so often, I realise I need to know perl. I try & solve a little
| problem, and I'm quickly reminded why I don't want to know perl.
| In some code, when I do:
| tie(%foo, "DB_File", "$stats_file", O_RDONLY, 0666, $DB_HASH);
| print "$_ ", $foo{"RECEIVED:smtp"}, "\n";
Um, I wouldn't have quoted $stats_file, myself.
| printed out. I want to be able to replace RECIEVED:smtp with "$ARGV[0]".
| Only I've no idea how quoting works in perl, and any random guesses just
| printed out nothing (errors, or data).
| Any ideas ?
perl -d scriptname.pl arg1 arg2 arg3....
brings up a debugger, n for next, s for step, p for print and x dumps
data structures. You know the drill.
As for RECIEVED....
Paul
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:36 GMT