Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Referencing string: Can't use string as a SCALAR ref

by P0w3rK!d (Pilgrim)
on May 12, 2003 at 18:20 UTC ( #257516=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://257516]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2019-12-11 22:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?