John W. Krahn wrote:
Brent Clark wrote:
Yes you could:

$ perl -le'
my $string = "75664545-bookings";
my $pre_hyphen = substr $string, 0, index $string, "-";
print $pre_hyphen;
'
75664545

Hi thanks for this

Cant believed I struggled, for / with something so simple

Regards
Brent Clark

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


  • Re: before - Brent Clark

Reply via email to