This script will reduce the length of the string by one character:
#BikerString.pl#!/usr/bin/perl -w use strict; my$str="Biker\n"; print('Length of Biker: '.length($str)."\n"); $str=~s/.//; print('Length of Biker: '.length($str)."\n");
In reply to Re: s/.// increases length - bug or badly documented feature
by Biker
in thread s/.// increases length - bug or badly documented feature
by Juerd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |