[ILUG] perl question

From: John P. Looney (valen at domain tuatha.org)
Date: Tue 03 Sep 2002 - 11:54:41 IST


 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.

 Anyway, this is a question I asked on the ilug irc channel, to no avail;

 In some code, when I do:
    tie(%foo, "DB_File", "$stats_file", O_RDONLY, 0666, $DB_HASH);
    print "$_ ", $foo{"RECEIVED:smtp"}, "\n";

 I get

    93

 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 ?

John



This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:18:36 GMT