Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: clipcommand.pl (Embed perl into your clipboard)

by antirice (Priest)
on Nov 02, 2007 at 14:43 UTC ( #648658=note: print w/replies, xml ) Need Help??


in reply to Re: clipcommand.pl (Embed perl into your clipboard)
in thread clipcommand.pl (Embed perl into your clipboard)

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://648658]
help
Chatterbox?
[1nickt]: Hm well actually I guess it's not the trailing semi-colon that's at issue there, it's disambiguation between the ellipsis and the binary flip-flop
[1nickt]: Although the example given does not produce an error as stated, on my perl.
[1nickt]: perl -wE 'say for map { ... } 1..3;' # "Unimplemented at -e line 1" ... <c>perlsyn says that should throw a syntax error...
[karlgoethebier]: 1nickt: "Edge cases..." Yes, it seems so. Thanks Nick

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2017-11-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (277 votes). Check out past polls.

    Notices?