Agustin Rivera wrote: > > How would I keep the character (or characters) that I am splitting by? > > for example, > > @tags=split(/>/, $line); > > I would like to keep the ">".
$ perl -le' $, = " * "; $line = q(<one><two><three><four>); print split />/, $line; print split /(>)/, $line; print $line =~ /([^>]*>)/g; ' <one * <two * <three * <four <one * > * <two * > * <three * > * <four * > <one> * <two> * <three> * <four> John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]