oddnos

u/oddnos


r/perl•

I'm a beginner Perl programmer and I'm wondering if there is a standard or best practise when it comes to organising code.

Coming from the .Net world, I am used to spreading my code across multiple class files. With Perl I am finding my files begin to look fairly messy and complicated, especially with the overall aesthetic of the language itself.

What does the Perl community generally do? Split functionality into modules and use them in the main script file?

2319

r/perl•

Hi all, I am running OpenBSD 7.0 and am trying to install and use Perlbrew,

However the bashrc file is incompatible with the ksh shell. Adding it to my .profile gives me an error of:

ksh: /home/adam/perl5/perlbrew/etc/bashrc[18]: syntax error: `< ' unexpected

Due to to this (and specifically line 18) in the bashrc:

16 __perlbrew_purify () {
17     local path patharray 
18     IFS=: read -r${BASH_VERSION+a}${ZSH_VERSION+A} patharray <<< "$1"
19     for path in "${patharray[@]}" ; do
20         case "$path" in
21             (*"$PERLBREW_HOME"*) ;;
22             (*"$PERLBREW_ROOT"*) ;;
23             (*) printf '%s' "$outsep$path" ; outsep=
139

r/openbsd•

I have recently set up a website on an OpenBSD box via OpenBSD Amsterdam.

I decided to check the logs this evening, and there are multiple strange GET and POST requests.

Here are a selection of examples:

GET /ecp/Current/exporttool/microsoft.exchange.ediscovery.exporttool.application

GET /boaform/admin/formLogin?username=ec8&psd=ec8 HTTP/1.0"

GET /blog/wp-includes/wlwmanifest.xml HTTP/1.1"

GET /index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21

My httpd setup is based upon Roman Zolotarev's guides here: https://rgz.ee/openbsd/httpd.html

https://rgz.ee/openbsd/acme-client.html

My site is

32

You've reached the end of this feed.