in reply to Re: split this
in thread split this

print "'", join( "', '", @j ), "'\n";

Replies are listed 'Best First'.
Re: even more concise
by davorg (Chancellor) on Nov 06, 2001 at 18:13 UTC
    { local $" = "', '"; print "'@j'\n"; }

    perlvar is your friend :)

    Update: Well, OK. Maybe not more concise then. But, maybe easier to follow?

    I think we need a shorter alias for local.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you don't talk about Perl club."

      lemur:~ 404> wc print"'",join("', '",@j),"'\n"; 1 2 32 lemur:~ 405> wc {local$"="', '";print"'@j'\n";} 1 2 32