Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Reusing placeholders

by hippo (Bishop)
on Mar 27, 2021 at 12:58 UTC ( [id://11130467]=note: print w/replies, xml ) Need Help??


in reply to Reusing placeholders

Simpler just to use the x operator, no?

$query->execute(("$last_y-$last_m-01") x 4);

🦛

Replies are listed 'Best First'.
Re^2: Reusing placeholders
by Bod (Parson) on Mar 27, 2021 at 23:20 UTC
    Simpler just to use the x operator, no?

    As you point it out...yes it is!
    I had forgotten about the x operator...

    Possibly because I don't think I have ever used it!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-19 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found