Jeff 'Japhy' Pinyan wrote:
> On Aug 17, SilverFox said:
>
>>Hi all...how can I pull the number from the given path??
>>
>>/Machine4/dir/dir/dir
>
> Well, it's a little vague, but perhaps all you want is
>
> my ($num) = $path =~ /(\d+)/;
>
> Or perhaps
>
> my ($num) = $path =~ /Machine(\d+
On Aug 17, SilverFox said:
>Hi all...how can I pull the number from the given path??
>
>/Machine4/dir/dir/dir
Well, it's a little vague, but perhaps all you want is
my ($num) = $path =~ /(\d+)/;
Or perhaps
my ($num) = $path =~ /Machine(\d+)/;
--
Jeff "japhy" Pinyan [EMAIL PROTECTED]
Hi all...how can I pull the number from the given path??
/Machine4/dir/dir/dir
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]