|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
How do you take a characters off the end of a varible or specify the size of a variable to be a certain size.
|
|
#2
|
|||
|
|||
|
you can use:
$var =~ s/^(.{5}).*/$1/; which will truncate your variable to 5 characters. or, it should, anyways. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > Trimming the end of a variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|