Joel Newkirk wrote: > > The first argument to split is converted to a regular expression and the > > '#' character is not special in a regular expression so split/#/ and > > split'\#' do exactly the same thing. > > Well, actually they don't, since the 'bare' # will be interpreted as > starting a comment, while the one in quotes won't... ;^) > > The op's assignment was assigning 'split(/' to @temp... >
Hi Joel, Did you test. The only problem I see with John's code is that it addumes that the print statement will print a newline, which it doesn't [at least on my installation of V5.8]. On the main point, he is right. Greetings! E:\d_drive\perlStuff\giffy>perl -w @temp = split(/#/, "abc#def#ghi#jkl"); print "$_\n" for @temp; ^Z abc def ghi jkl Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>