develooper Front page | perl.beginners | Postings from March 2002

Re: string indexing

Thread Previous | Thread Next
From:
bob ackerman
Date:
March 4, 2002 12:52
Subject:
Re: string indexing
Message ID:
BEF1DCC3-2FB1-11D6-A414-003065428126@pacbell.net
now that is clever! what is the literal meaning/function of the '+'.
of course, one still must know that a leading paren will be seen by 'print'
  unless there is some intervening dummy character. that's ok.

On Monday, March 4, 2002, at 12:15  PM, John W. Krahn wrote:

> print +(split //, "abcd")[1], "\n";

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About