begood321 has asked for the wisdom of the Perl Monks concerning the following question:
use strict; use warnings; my $folder_path = "/aboutiso/corp_gov/bod/agendas/2010"; $folder_path =~ s#/\w+/[^/]*.\w+$##; print "folderpath: $folder_path\n";[/
gives me incorrect output: /aboutiso/corp_gov
I'm trying to print /aboutiso/corp_gov/bod/agendas
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex output incorrect
by AnomalousMonk (Archbishop) on Dec 14, 2010 at 02:37 UTC | |
by begood321 (Novice) on Dec 14, 2010 at 02:44 UTC | |
|
Re: Regex output incorrect
by ikegami (Patriarch) on Dec 14, 2010 at 02:12 UTC | |
|
Re: Regex output incorrect
by GrandFather (Saint) on Dec 14, 2010 at 02:08 UTC | |
by begood321 (Novice) on Dec 14, 2010 at 02:17 UTC | |
|
Re: Regex output incorrect
by wagnerc (Sexton) on Dec 14, 2010 at 02:18 UTC | |
by begood321 (Novice) on Dec 14, 2010 at 02:31 UTC | |
|
Re: Regex output incorrect
by cdarke (Prior) on Dec 14, 2010 at 14:16 UTC | |
by jakeease (Friar) on Dec 14, 2010 at 19:14 UTC | |
|
Re: Regex output incorrect
by jakeease (Friar) on Dec 14, 2010 at 10:41 UTC |