Re: Cutting Variable

2003-08-17 Thread SilverFox
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+

Re: Cutting Variable

2003-08-17 Thread Jeff 'japhy' Pinyan
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]

Cutting Variable

2003-08-17 Thread SilverFox
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]