473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Can't use string ("1") as an ARRAY ref while "strict refs" in use at (re_eval 96) lin

My Code Snippet.

Expand|Select|Wrap|Line Numbers
  1. #!perl -w
  2.  
  3. #############################################################################
  4. #
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. use SOAP::Lite;
  12. use POSIX qw( strftime );
  13. use warnings;
  14. my $data_date = strftime("[%m/%d/%Y %H:%M:%S]", localtime);
  15. my %InputParms;
  16. my $temp_elements;
  17. my $response = 1;
  18.  
  19.     ##############################################
  20.     #
  21.     # Step 1 - Email the reminder
  22.     #
  23.     ##############################################
  24.  
  25.     my $soap1 = SOAP::Lite
  26.         -> uri('urn:MsgDeliveryService')
  27.         -> proxy("http://$ENV{MSGDEL_WS_HOST}/MsgDeliveryService/services/MsgDeliveryService");
  28.  
  29.     my $subj = "Activity Sheet Daily Report Notice";
  30.  
  31.     my $recp = "abc\@gmail.com";
  32.     if( $ENV{CTRM_ENV} ne "PRD" ) {
  33.         $subj = "$ENV{CTRM_ENV}: TEST : $subj";
  34.  
  35.         $recp = "abc\@gmail.com";
  36.     }
  37.  
  38.     %InputParms = (
  39.         FROM      => "abc\@gmail.com",
  40.         SUBJECT   => "$subj",
  41.         PAYLOAD   => "The Activity Sheet Daily Report is available",
  42.         DLVR_MTHD => "SMTP",
  43.         RECIPIENT => "$recp"
  44.         );
  45.  
  46.     $temp_elements = SOAP::Data
  47.         -> value( SOAP::Data
  48.         -> type('map', \%InputParms)
  49.         );
  50.  
  51.     $response = $soap1->deliverMsg($temp_elements);
  52.  
  53. exit ($response?0:1);
Aug 24 '17 #1
0 5983

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: D. Alvarado | last post by:
Hi, I have this arr $months = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); and I would like to take this...
2
by: Adam | last post by:
Hi all, If I have a string where I know the length how do I split that into an array based on Char position. For example, split a string with a length of 100 into a 5 element Array, each of...
1
by: wonil kim | last post by:
Hello all, I am new guy on C#. So, my question will be very simple to you guys here. I want to use string constants array from C# like C++ like below. in C++ : char const * const...
2
by: bluebeta | last post by:
Hi, I am using embedded visual C++ 4.0 and I want to use function strtok to split string into array. my sample code is as below: ...
18
by: Kyro | last post by:
New to C# (migrating from Delphi) and I'm not sure how to get a delimited string into an array of string. input: string looks like - 01-85-78-15-Q11 output: an array with elements - ...
1
by: sunil68 | last post by:
I am able to pass the string to array of string please help me out with this problem string s ="This is a hat"; and the output should be like this This is a hat
2
by: John | last post by:
Hi How can I cast a string variable to a one element string array of one dimension? I need this to pass a string value to a sub that accepts an array of string as parameter. Thanks Regards
5
by: da1978 | last post by:
Hi experts, I need to convert a string or a Byte array to a string byte array. Its relatively easy to convert a string to an char array or a byte array but not a STRING byte array. i.e. ...
6
by: ekailan | last post by:
I am reading a file line by line I need to copy the line which is string to array of chars named packet. what function could help me do that. this is my code: char *packet; packet=new char ;...
4
by: movieking81 | last post by:
Hello all - Does anyone here have any suggestions how I start to count the instances of a particular number with a string or array? I think I have an idea, but I'm not really sure. I have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.