Article View: pl.comp.lang.perl
Article #52410Re: Odpowiednik funkcji source z basha
From: piecia aka dracorp
Date: Fri, 24 Feb 2012 14:59
Date: Fri, 24 Feb 2012 14:59
19 lines
1270 bytes
1270 bytes
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-
--
Piecia
Technical Details
Message-ID:
<pan.2012.02.24.15.04.55@dracorp.one.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail From: piecia aka dracorp <imie.nazwisko@wp.eu> Newsgroups: pl.comp.lang.perl Subject: Re: Odpowiednik funkcji source z basha Date: Fri, 24 Feb 2012 14:59:39 +0000 (UTC) Organization: "Portal Gazeta.pl -> http://www.gazeta.pl" Lines: 19 Message-ID: <pan.2012.02.24.15.04.55@dracorp.one.pl> 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> NNTP-Posting-Host: 62.108.180.232 Mime-Version: 1.0 X-Trace: inews.gazeta.pl 1330095579 13737 62.108.180.232 (24 Feb 2012 14:59:39 GMT) X-Complaints-To: usenet@agora.pl NNTP-Posting-Date: Fri, 24 Feb 2012 14:59:39 +0000 (UTC) X-User: dracorp User-Agent: Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit