happyborg,
@happyborg@fosstodon.org avatar

Having forgotten everything I ever knew about #Perl I'm trying to extend a script I wrote years ago and am almost at the point of asking #Llama #LLM for help.

I mean, assigning a string with an embedded variable really should not be hard 🤷‍♂️

All in an effort to make my faithful old #ftpdns use SSH and SCP instead of FTP, which stops working every time someone in a datacentre sucks their teeth.

If it works I'll have to rename it DIY #DNS.

DrHyde,
@DrHyde@fosstodon.org avatar

@happyborg $pleasing_things = "I like $favourite_animal, $favourite_tree, and $favourite_supernova.\n"

Does that help?

happyborg,
@happyborg@fosstodon.org avatar

@DrHyde no, but thanks for trying. If I'm stuck when I get back to the laptop I'll post the issue.

vague,

@happyborg @DrHyde There's also "This thing: ${foobar}", or $var = sprintf("This thing: %s", $foobar);

happyborg,
@happyborg@fosstodon.org avatar

@vague @DrHyde thank you both for the hints but when I screw up it's usually beyond the obvious.

Turns out one of the variables I was substituting to build a command string contained a newline 🤦‍♂️

  • All
  • Subscribed
  • Moderated
  • Favorites
  • llm
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • GTA5RPClips
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • provamag3
  • everett
  • cisconetworking
  • Leos
  • normalnudes
  • cubers
  • modclub
  • ngwrru68w68
  • tacticalgear
  • megavids
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines