codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Problem with concatenation  padmaja3 at 05:44 on Thursday, October 11, 2007
 

Hi all,
I'm beginner in Perl. I need to concatenate three values in the date format like,

$fullDate = $ARGV[3] . "/index.html" . $ARGV[4] . "/index.html" . $ARGV[5];


But while concatenating, it is performing division on values. I have tried '.',':','-'. But its not working. I have to use some separator between the date, month and year.

Pls suggest me how to proceed.

Thanks a ton,
Padmaja T N.



  Re: Problem with concatenation  mimir at 08:25 on Thursday, October 11, 2007
 

#$fullDate = $ARGV[3] . "/index.html" . $ARGV[4] . "/index.html" . $ARGV[5];


#try this:
$fullDate = "$ARGV[3]"."\/$ARGV[4]"."\/$ARGV[5]";



  Re: Problem with concatenation  padmaja3 at 08:39 on Thursday, October 11, 2007
 

Hi,
Thanks for responding.
Its doing the same thing,DIVISION.

  Re: Problem with concatenation  loopsnlogic at 08:40 on Saturday, October 13, 2007
 

Hi,

Problem with concatenation can be solved with examples available at http://www.visualbuilder.com/sourcecode_cat_listing.php?cat_id=362

Regrds

  Re: Problem with concatenation  Sunil Kartikey at 12:43 on Monday, October 22, 2007
 

Its working fine..

my argument.pl file contain below 2 lines

$fullDate = $ARGV[0] . "/index.html" . $ARGV[1] . "/index.html" . $ARGV[2];
print "value is $fullDate\n\n";

Below is the output.. and its not dividing.. its working fine..

[root@labportal RandD]# perl argument.pl 8 4 2
value is 8/4/2









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Chat application
•  How to send multiple perameters in SOAP request.
•  Java code for Insert picture on the table in spreadsheet
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007