🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #52411

Re: Odpowiednik funkcji source z basha

#52411
From: Stachu 'Dozzie' K.
Date: Fri, 24 Feb 2012 15:04
27 lines
2030 bytes
On 2012-02-24, piecia aka dracorp <imie.nazwisko@wp.eu> wrote:
> No dobra jak na razie to działa:
> #v+
> if ( $value =~ m/\A\$/xms ){
>     $value =~ s{
>         \$\{?([_a-zA-Z0-9]+)\}?
>     }{
>         no strict 'refs';
>         if (defined $$1){
>             $$1;
>         }
>         else {
>             "";
>         }
>     }egx;
> }
> #v-

Zdajesz sobie sprawę z tego, że twój kod jest paskudny, okropny
i powinno się za taki ucinać autorowi ręce?

Zabrali twojemu Perlowi %hasze, że starannie unikasz ich używania
i zamiast tego pieprzysz się z evalem i `no strict refs'?

-- 
Secunia non olet.
Stanislaw Klekot
Technical Details
Message-ID: <slrnjkf9m9.tg5.dozzie@jarowit.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
References: <pan.2012.02.24.11.56.04@dracorp.one.pl> <slrnjkeuri.tg5.dozzie@jarowit.net> <pan.2012.02.24.12.15.32@dracorp.one.pl> <slrnjkf016.tg5.dozzie@jarowit.net> <pan.2012.02.24.14.45.53@dracorp.one.pl> <pan.2012.02.24.15.04.55@dracorp.one.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!goblin2!goblin.stu.neva.ru!feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: "Stachu 'Dozzie' K." <dozzie@go.eat.some.screws.spammer.invalid>
Newsgroups: pl.comp.lang.perl
Subject: Re: Odpowiednik funkcji source z basha
Date: Fri, 24 Feb 2012 15:04:02 +0000 (UTC)
Organization: solani.org
Lines: 27
Message-ID: <slrnjkf9m9.tg5.dozzie@jarowit.net>
References: <pan.2012.02.24.11.56.04@dracorp.one.pl> <slrnjkeuri.tg5.dozzie@jarowit.net> <pan.2012.02.24.12.15.32@dracorp.one.pl> <slrnjkf016.tg5.dozzie@jarowit.net> <pan.2012.02.24.14.45.53@dracorp.one.pl> <pan.2012.02.24.15.04.55@dracorp.one.pl>
Mime-Version: 1.0
X-Trace: solani.org 1330095842 22382 eJwNyMERACEIA8CW5CDJWA4C9l/C+dtZOI2lIBi4uO4IMWOkebPrFncbu7SqH4Rcwc8nj53pHxFhETY= (24 Feb 2012 15:04:02 GMT)
X-Complaints-To: abuse@news.solani.org
NNTP-Posting-Date: Fri, 24 Feb 2012 15:04:02 +0000 (UTC)
User-Agent: slrn/pre0.9.9-111 (Linux)
X-User-ID: eJwVxcERwDAIA7CVgh0DGYeSsv8Iveoj0c07tsu3RvO6IOVazUsNrQYwK8rB6cg4t/IQevD/AQH3EBE=
Cancel-Lock: sha1:dxyodgGza8jCdmxMtEMBAhrS4Bg=
X-NNTP-Posting-Host: eJwNyUkBwEAIBDBN3IMcYMG/hDbfmDj5hLq52tktTUQBF8GtIFOlkldcA1/h/uddIJFbif4AGEsRJA==
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit