On Sat, Nov 28, 2037 at 10:04:37AM +0800, billy wrote:
> when i user substr,i find "Tab" key is calculated as 1,but i want to set it as
>8,what will i do?
> thks.
I'm not sure what you mean.
Are you saying you want to replace the tab character with 8 spaces?
In that case just do something like this, assumuming $data is the
variable containing the tab(s). It simply replaces each tab with 8
spaces.
$data =~ s/\t/' ' x 8/eg;
HTH,
--
Michael
[EMAIL PROTECTED]
http://www.jedimike.net/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]