On Sat, 28 Jun 2003, Ling F. Zhang wrote: > say I have a string scalar $s > I would like to convert it @s in such a way that qw > would do it... > i.e. > if $s = "rabbit hole\t goes\tall the way\n" > then > @s = ("rabbit","hole","goes","all","the","way\n") >
@s = (split /\t/, $s); Hope it helps. Regards, Shlomi Fish > notice that I preserved the "\n" at the end, but I > would settle for a solution that doesn't preserve > it...thanx > > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > ---------------------------------------------------------------------- Shlomi Fish [EMAIL PROTECTED] Home Page: http://t2.technion.ac.il/~shlomif/ An apple a day will keep a doctor away. Two apples a day will keep two doctors away. Falk Fish -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]