Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

join( ... map { ... } ... ) failing under FastCGI but not server.pl #49

Open
einkoro opened this issue Sep 5, 2012 · 0 comments
Open

Comments

@einkoro
Copy link
Member

einkoro commented Sep 5, 2012

Same version of Perl at that.

Works under server.pl and fails under FastCGI:

my $dyn_name = join('-', map { s!\.xsl$!!og; s!/!_!og } @stylesheets) . '.xsl';

Works under both but isn't as nice – plus the other one used to work:

my $dyn_name;
for my $file (@stylesheets) {
    $dyn_name = $file;
    $dyn_name =~ s/\.xsl$//og;
    $dyn_name =~ s/\//_/og;
    $dyn_name .= '.xsl';
}
@ghost ghost self-assigned this Sep 5, 2012
@einkoro einkoro unassigned ghost May 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant