TClayJ has asked for the wisdom of the Perl Monks concerning the following question:
if ( !-e $save_file ) { if ( $access eq "Open" ) { ( $http, $trash, $website, $directory, $guid ) = split ( '/', $d +lFile ); $url = $dlFile; } else { ( $http, $trash, $website, $gii, $sharing, $rest, $content, $ite +ms, $guid ) = split ( '/', $dlFile ); my $test = "123456781234567890abcdefghijklmnopqrstuvwxyz"; $url = $dlFile . $test; print "url=$dlFile$test\n"; } }
produces this output:
123456781234567890abcdefghijklmnopqrstuvwxyzest/content/items/7a85ce53fe11466985515207b6d48dde/data?token=
I want it to product this output:
https://outerim.com/gii/sharing/rest/content/items/7a85ce53fe11466985515207b6d48dde/data?token=123456781234567890abcdefghijklmnopqrstuvwxyz
for some reason I can not figure out the $test variable is being appended to the start of the $dlFile variable and not the end.
Any help is greatly appreciated.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Concatination Issue
by choroba (Cardinal) on Dec 01, 2016 at 14:25 UTC | |
by TClayJ (Initiate) on Dec 01, 2016 at 15:04 UTC |