DarknessX has asked for the wisdom of the Perl Monks concerning the following question:
Can I use $` and $' outside of the if? How? Is this an idiotic question? I await your (hopefully) helpful replies.my $line="'0x160001a \"fubar - BlahBlahBlah - Blah Blah (1:23)\": ("Fo +o" "Bar") Baz"; if ($line=/\)/){ $line="$`)"; } if ($line=/-\s/){ $line=$'; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple re question
by FamousLongAgo (Friar) on Jan 27, 2003 at 04:17 UTC | |
|
Re: Simple re question
by Enlil (Parson) on Jan 27, 2003 at 04:31 UTC | |
|
Re: Simple re question
by John M. Dlugosz (Monsignor) on Jan 27, 2003 at 07:07 UTC | |
|
Re: Simple re question
by DarknessX (Scribe) on Jan 27, 2003 at 20:55 UTC | |
by diotalevi (Canon) on Jan 27, 2003 at 21:17 UTC | |
by Enlil (Parson) on Jan 27, 2003 at 22:20 UTC |