[plug] perl question

Nick Bannon nick at ucc.gu.uwa.edu.au
Thu Sep 23 12:04:20 WST 2004


On Thu, Sep 23, 2004 at 11:51:20AM +0800, Patrick Tehvand wrote:
> Quick one, Can someone tell me if there is a function to strip the first 
> character off a variable?

substr EXPR,OFFSET,LENGTH,REPLACEMENT ; as in:

% perl -le 'print substr($ARGV[0],1)' abcde
bcde

Nick.

-- 
   Nick Bannon   | "I made this letter longer than usual because
nick-sig at rcpt.to | I lack the time to make it shorter." - Pascal




More information about the plug mailing list