in reply to Referencing string: Can't use string as a SCALAR ref

Found one problem:
logFunc("...performing FTP of $$strFileB");
I did not see the extra $. DoH!

Performing:

$strFileB = $$strFileB;
..did the trick.

Is there a better way to do this?

-P0w3rK!d

Replies are listed 'Best First'.
Re: Re: Referencing string: Can't use string as a SCALAR ref
by cbro (Pilgrim) on May 12, 2003 at 18:41 UTC
    I think the reason that started happening is because you did
    \$array[index]
    . I'm about 99% sure that the log you mentioned, logFunc("...performing FTP of $$strFileB");, didn't show up until you did that.