Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
Use m{} rather than m## for pattern match.
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.debian.org/cruft/trunk@209 14f89510-8efc-0310-927e-d869d0d96f2b
  • Loading branch information
porridge committed Mar 2, 2011
1 parent 320dd56 commit 8592370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion explain/ALTERNATIVES
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ open( NEED, ">&=3" ) || die( "Couldn't open output for needed files!?!" );

while( defined($alternative_file = glob("/var/lib/dpkg/alternatives/*")) )
{
$name = "$1" if $alternative_file =~ m#^.*/([^/]*)$#;
$name = "$1" if $alternative_file =~ m{^.*/([^/]*)$};

open( FILE, $alternative_file ) || die( "Couldn't open $alternative_file\n" );

Expand Down

0 comments on commit 8592370

Please sign in to comment.