David Samuelsson wrote:
> 
> This should be really simple, just use a regexp to remove
> the 4 last letters from a variable.
> 
> $variable =~ /\S\S\S\S$/;
> print "$variable";
> 
> but this doesnt remove the 4 last letters when i run it, i
> think i am just getting tired here and cant see why, what
> is the right way to do it? :)


$variable =~ s/\S\S\S\S$//;


John
-- 
use Perl;
program
fulfillment

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

Reply via email to