Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Centos 7 getadsmtp.pl outputing blank

by afoken (Canon)
on Aug 28, 2019 at 09:01 UTC ( #11105161=note: print w/replies, xml ) Need Help??


in reply to Re^2: Centos 7 getadsmtp.pl outputing blank
in thread Centos 7 getadsmtp.pl outputing blank

Possible unintended interpolation of @proxyAddresses in string

@ must be escaped in double quoted strings, and because you don't have an array named @proxyAddress, "@proxyAddress" evaluates to an empty string.

Another option is to use single quotes instead of double quotes.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^4: Centos 7 getadsmtp.pl outputing blank
by nycspud (Initiate) on Sep 06, 2019 at 16:33 UTC
    I declared the array before it was used and that cleared the warning messages. Thanks to everyone on this thread for helping to get this working!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2021-06-14 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (64 votes). Check out past polls.

    Notices?