I may be missing something, but the doc for ENV says: " Arrays are implemented in terms of split and join, using $Config::Config{path_sep} as the delimiter. "
Now if i split this: Foo = C:\foo\bar:D:\foo\bar using: use Env qw(@Foo); print "$_\n" foreach (@Foo); i guess it would print the whole Foo instead of printing 2 elements C:\foo\bar and D:\foo\bar, because the $Config::Config(path_sep) is not ":" on windows. -Sharad > -----Original Message----- > From: Steve Grazzini [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 02, 2003 4:22 PM > To: Gupta, Sharad > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re: Splitting a path > > > On Sat, Aug 02, 2003 at 03:20:14PM -0700, Gupta, Sharad wrote: > > From: Casey West [mailto:[EMAIL PROTECTED] > >> It was Saturday, August 02, 2003 when Gupta, Sharad took > the soap box, saying: > >> : > >> : Hi, > >> : > >> : I have a path which may look like: > >> > >> use Env [EMAIL PROTECTED]; > >> > >> print "$_\n" foreach @PATH; > >> > >> I love the Perl core. :-) > > > > I miscommunicated here, by path i did'nt meant the PATH env > > variable. By Path i meant any string having some directories > > seperated by ":" , say it could be > > > > FOO=E:\foo:D:\bar. > > > > And yes it can be in the %ENV. > > Then Casey's suggestion will work for you with just one tiny > modification. > > use Env [EMAIL PROTECTED]; > > print "$_\n" foreach @FOO; > > >> For more information read http://search.cpan.org/perldoc?Env > > This is still recommended. ^_^ > > And it would be great if you could arrange for your mail/news > reader to "quote" the text of the original message rather than > appending it unmodified at the end of your response. > > -- > Steve > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]