Jul 5, 2001 #1 teser Technical User Joined Mar 6, 2001 Messages 194 Location US Please advise what this '.=' is saying in a perl script such as: while ($line = <$fh>) {$paragraph .= $line; } What is the '.=' doing between $paragraph and $line??
Please advise what this '.=' is saying in a perl script such as: while ($line = <$fh>) {$paragraph .= $line; } What is the '.=' doing between $paragraph and $line??
Jul 5, 2001 #2 luckydexte Programmer Joined Apr 26, 2001 Messages 84 Location US teser, That is a shortcut used to simplify concatenation. The following two are the same: $paragraph .= $line; $paragraph = $paragraph . $line; They both concatenate $line to the end of $paragraph. Brandon Upvote 0 Downvote
teser, That is a shortcut used to simplify concatenation. The following two are the same: $paragraph .= $line; $paragraph = $paragraph . $line; They both concatenate $line to the end of $paragraph. Brandon