skip to main | skip to sidebar

Perl - Tidings

Thursday, March 5, 2009

How many ways can we express string in Perl

Many.

For example

'this is a string' can be expressed in:
"this is a string"
qq/this is a string like double-quoted string/
qq^this is a string like double-quoted string^
q/this is a string/
q&this is a string&
q(this is a string)
Posted by Sakthi at 12:04 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

My Archive

  • ►  2012 (2)
    • ►  May (2)
  • ►  2011 (13)
    • ►  September (13)
  • ►  2010 (8)
    • ►  September (1)
    • ►  August (5)
    • ►  March (1)
    • ►  February (1)
  • ▼  2009 (24)
    • ►  July (4)
    • ▼  March (11)
      • Error : Can't do inplace edit without backup
      • Special Variables - @ARGV
      • Perl Handles Numbers
      • Basic Naming Rules in Perl
      • Printing a Hash
      • How to Take a Hash Slice
      • Establishing a Default Value
      • Get Pathname Of Current Working Directory
      • Ordered Hashes
      • How many ways can we express string in Perl
      • TypeGlobes
    • ►  February (9)
  • ►  2008 (2)
    • ►  November (1)
    • ►  May (1)
  • ►  2007 (1)
    • ►  June (1)