www.perl.com
Perl Programming
String Operators
  • String operators provide string context
  • Common operators are provided
    • Concatenation (.)
    • Repetition (x)
    • Assignment (.=, x=)

        $bark = "Woof!";
        $bark .= " ";       # Append a space
        $bark x= 5;         # Repeat 5 times
        print "The dog barked: $bark\n";
      

        The dog barked: Woof! Woof! Woof! Woof! Woof! 
      
Previous http://stuff.mit.edu/iap/perl/