Greetings,

Is there a way to make Perl truncate a single scalar variable by a given
number of characters like the unix cut command can?  For example, I have a
scalar variable that is 7 characters long, but for another purpose I only
want the last 5 characters of this variable.  To do this with the unix cut
command I would issue the following line:

Echo $variable | cut -c3-7

How can this be done in Perl?

Best regards,

Rz



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to