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+)/;
>
Cool...that did the trick