* Perl
@ 2002-12-04 15:48 Paul Kraus
2002-12-05 6:56 ` Perl ichi
0 siblings, 1 reply; 3+ messages in thread
From: Paul Kraus @ 2002-12-04 15:48 UTC (permalink / raw)
To: linux-newbie
[-- Attachment #1: Type: text/plain, Size: 224 bytes --]
How can I make this assignment in one statement. I know its going to be
something easy.
$path=$5;
$path=~s/ /\\ /g;
Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax
www.pelsupply.com
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Paul Kraus (pkraus@pelsupply.com).vcf --]
[-- Type: text/x-vcard; name="Paul Kraus (pkraus@pelsupply.com).vcf", Size: 592 bytes --]
BEGIN:VCARD
VERSION:2.1
N:Kraus;Paul
FN:Paul Kraus (pkraus@pelsupply.com)
ORG:PEL Supply Company
TITLE:Network Administrator
TEL;WORK;VOICE:(216) 267-5775
TEL;CELL;VOICE:(216) 410-5526
TEL;WORK;FAX:(216) 267-6176
ADR;WORK:;;4666 Manufacturing Road;Cleveland;Ohio;44135;United States of America
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:4666 Manufacturing Road=0D=0ACleveland, Ohio 44135=0D=0AUnited States of Ame=
rica
ADR;HOME:;;;;;;United States
LABEL;HOME:United States
URL;WORK:http://www.pelsupply.com
EMAIL;PREF;INTERNET:pkraus@pelsupply.com
REV:20020416T182124Z
END:VCARD
^ permalink raw reply [flat|nested] 3+ messages in thread
* re: Perl
@ 2002-12-04 19:24 Alan Womack
0 siblings, 0 replies; 3+ messages in thread
From: Alan Womack @ 2002-12-04 19:24 UTC (permalink / raw)
To: Paul Kraus; +Cc: linux-newbie
> How can I make this assignment in one statement. I know its going to be
something easy.
$path=$5;
$path=~s/ /\\ /g; <
won't
$path=$5=~s/ /\\ /g;
work? maybe have to put () around the $5=~, but I think it will work without that.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Perl
2002-12-04 15:48 Perl Paul Kraus
@ 2002-12-05 6:56 ` ichi
0 siblings, 0 replies; 3+ messages in thread
From: ichi @ 2002-12-05 6:56 UTC (permalink / raw)
To: Paul Kraus; +Cc: linux-newbie
Paul Kraus wrote:
>
> How can I make this assignment in one statement.
> I know its going to be something easy.
> $path=$5;
> $path=~s/ /\\ /g;
I don't understand. Is this part of a bash script?
It looks like you a trying to assign the fifth parameter
(path=$5) to a variable named path (which BTW is not the
PATH) and then manipulate it in some way (something to do
with \ I think).
Perhaps this is some language that I am unfamiliar with?
If so, I apologize. However, if is bash, I suggest you
explain in words what you want to do, and I will try to
script it.
Cheers,
Steven
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-05 6:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-04 15:48 Perl Paul Kraus
2002-12-05 6:56 ` Perl ichi
-- strict thread matches above, loose matches on Subject: below --
2002-12-04 19:24 Perl Alan Womack
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox