Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: (Embed perl into your clipboard)

by hawtin (Prior)
on Nov 02, 2007 at 08:55 UTC ( #648608=note: print w/replies, xml ) Need Help??

in reply to (Embed perl into your clipboard)

What a great idea, looks like a good addition for Windows. One minor point, in your final example I think you actually mean.

-- def_macro eval print eval join "",<>

Replies are listed 'Best First'.
Re^2: (Embed perl into your clipboard)
by antirice (Priest) on Nov 02, 2007 at 14:43 UTC

    The way I meant it to be used was something like this:

    -- eval print for 1..100;

    or suppose you have a list of items and wish to build a derived table (nice for seeing which of the values doesn't exist in another table)

    -- eval print join "$/UNION ALL$/", map "SELECT $_ as x", 1..100;

    The intent was to let you pass plain perl and do whatever you want.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://648608]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2022-08-15 03:17 GMT
Find Nodes?
    Voting Booth?

    No recent polls found