drake50 has asked for the wisdom of the Perl Monks concerning the following question:
print "Forked child printing CMDSTART to client\n"; $date=`date`; print "\$date $date"; &S_print ("[$client_ipnum] $client_host $date connection attem +pt logged\n"); print "\$date $date"; &S_print ("This is a private server. All connections are logge +d\n"); &S_print ("username:\n"); print "sent username:\n";
Forked child printing CMDSTART to client $date $date sent username:Not only does it look like it printed $date instead of it's value then it didn't print the next one and skipped ahead to print sent username. Then on the next run it worked okay:
Forked child printing CMDSTART to client $date Thu Mar 13 00:25:32 CST 2003 $date Thu Mar 13 00:25:32 CST 2003 sent username: un received: usernamex pw received: start Accepted connectionAm I going crazy? Can anyone make any sense out of this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $date in print is printing \$date ???
by crenz (Priest) on Mar 13, 2003 at 08:00 UTC | |
by drake50 (Pilgrim) on Mar 13, 2003 at 08:12 UTC | |
|
Re: $date in print is printing \$date ???
by drake50 (Pilgrim) on Mar 13, 2003 at 07:43 UTC | |
by PodMaster (Abbot) on Mar 13, 2003 at 10:14 UTC |