Skip Menu |
 

This queue is for tickets about the Switch CPAN distribution.

Report information
The Basics
Id: 29622
Status: new
Priority: 0/
Queue: Switch

People
Owner: Nobody in particular
Requestors: paddor [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 918DB4D8013 for <bug-Switch [...] rt.cpan.org>; Wed, 26 Sep 2007 08:14:41 -0400 (EDT)
Received: (qmail 22372 invoked by alias); 26 Sep 2007 12:14:40 -0000
Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.182) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 26 Sep 2007 05:14:36 -0700
Received: by wa-out-1112.google.com with SMTP id m28so2953078wag for <bug-Switch [...] rt.cpan.org>; Wed, 26 Sep 2007 05:14:33 -0700 (PDT)
Received: by 10.115.32.1 with SMTP id k1mr825796waj.1190808872827; Wed, 26 Sep 2007 05:14:32 -0700 (PDT)
Received: by 10.114.174.3 with HTTP; Wed, 26 Sep 2007 05:14:32 -0700 (PDT)
Delivered-To: cpan-bug+switch [...] diesel.bestpractical.com
MIME-Version: 1.0
Subject: comments and regular expression cases
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DMVX9pLHlEmiMw0r9r0wqrbFElqIw83nEdzKvWPvS5bDPZp/8SgTEZJ05Mgy2WkQnqGFHRh2B1xoCCqwLvBfdQlgCOnkoQuo50pNN9BBVOkmIhBNF7+B2NrgV+2Bqu3OcVFFzkyRtKpYdpIYxB/pusBhHAFQ0QmuSeVk4/y3UKg=
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,SPF_PASS
Return-Path: <paddor [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=btOOd1n+K0tmjdUClCt0aaaIQ1amUGEpLXx/0prhrcQ=; b=nJVZti/MjQPeY7U5TWBr1/bZr8UKXTBiLIrCtldmh9v8yUtP55bn32AFyquGOMKJZ/bqE2aR5ejm1f5vrTBD2Zaqi+eOjwQ+TmgnG7yGdgPWbZzxG92Ikmo1e0BbF5pxsePp1MxIgLER7Gnn3wesnLTJpb1NmJK9H9bFYMqyudU=
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-Switch [...] rt.cpan.org
Content-Disposition: inline
Date: Wed, 26 Sep 2007 14:14:32 +0200
Message-Id: <7eda9cc50709260514h77245eb4wd859ce1dbc6202f0 [...] mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
To: bug-Switch [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: paddor <paddor [...] gmail.com>
X-RT-Original-Encoding: utf-8
Content-Length: 725
Download (untitled) / with headers
text/plain 725b
Hello It's very strange. The code below does neither work with Switch 2.13 on RedHat x86_64 nor with Switch 2.10_01 on Gentoo x86_64. If I don't use a regular expression in the case statement, it works. If I remove the COMMENTED sub "h2a" at the end, it works. If I do both, it works. Show quoted text
--- code BEGIN --- #! /usr/bin/env perl use Switch; # for switch-case conditions my $usage = "This is the Usage."; switch ($ARGV[0]) { case "-f" { print "A file is read."; } case /^-/ { print $usage; } else { print "This is the else-block."; } } #sub h2a { # join '', map chr hex, split /:/, $_[0]; #}
--- code END --- Greets, paddor


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.