943,534 Members | Top Members by Rank

Ad:
  • Perl Discussion Thread
  • Marked Solved
  • Views: 639
  • Perl RSS
May 14th, 2009
0

concatenation question

Expand Post »
I'm trying to append a string to an array value and it doesn't seem to be working. Can someone tell me what I'm doing wrong? The array values will be URLs with a trailing forward slash.

http://www.mywebsite.com/Details/pro...w-York-293486/

$values[10] .= '?cid=spontrue';
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
perlguy is offline Offline
4 posts
since Nov 2006
May 14th, 2009
0

Re: concatenation question

The code you posted will work to append the string to the end of whatever value $values[10] has. If its not working the problem is elsewhere.
Reputation Points: 246
Solved Threads: 67
Practically a Posting Shark
KevinADC is offline Offline
898 posts
since Mar 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Perl Forum Timeline: Extract data from a saved file
Next Thread in Perl Forum Timeline: How to extract a value in perl??





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC