于 2012-4-27 20:43, Shawn H Corey 写道:
> On 12-04-27 03:06 AM, Zapp wrote:
>> when I use bash, I can write a file ( a.sh ) like :
>> abc='abc'
>> ddd='aaa'
>> ...
>> then I can load it in other file:
>> source a.sh
>> echo $abc $ddd # it always work!
>>
>> but in perl , how can I do like that ?
>>
>>
On 12-04-27 03:06 AM, Zapp wrote:
> when I use bash, I can write a file ( a.sh ) like :
> abc='abc'
> ddd='aaa'
> ...
> then I can load it in other file:
> source a.sh
> echo $abc $ddd # it always work!
>
> but in perl , how can I do like that ?
>
> I write a file ( my_env.pl ) like:
> #!/usr/bin
Hi zapp,
Please my comments below:
2012/4/27 Zapp
> when I use bash, I can write a file ( a.sh ) like :
> abc='abc'
> ddd='aaa'
> ...
> then I can load it in other file:
> source a.sh
> echo $abc $ddd # it always work!
>
> but in perl , how can I do like that ?
>
> I write a file ( my_env.pl )
Just an update I also found this book.
http://www.amazon.com/Beginning-Perl-Web-Development-Professional/dp/1590595319
Beginning Perl Web Development: From Novice to Professional
(Beginning: From Novice to Professional) [Paperback]
Steve Suehring
it's a good overview book but does cover a lot o
于 2012-4-27 15:41, Octavian Rasnita 写道:
> From: "Zapp"
>> when I use bash, I can write a file ( a.sh ) like :
>> abc='abc'
>> ddd='aaa'
>> ...
>> then I can load it in other file:
>> source a.sh
>> echo $abc $ddd # it always work!
>>
>> but in perl , how can I do like that ?
>>
>> I write a file (
From: "Zapp"
> when I use bash, I can write a file ( a.sh ) like :
> abc='abc'
> ddd='aaa'
> ...
> then I can load it in other file:
> source a.sh
> echo $abc $ddd # it always work!
>
> but in perl , how can I do like that ?
>
> I write a file ( my_env.pl ) like:
> #!/usr/bin/perl -w
> my $abc='
when I use bash, I can write a file ( a.sh ) like :
abc='abc'
ddd='aaa'
...
then I can load it in other file:
source a.sh
echo $abc $ddd # it always work!
but in perl , how can I do like that ?
I write a file ( my_env.pl ) like:
#!/usr/bin/perl -w
my $abc='abc';
my $ddd="ddd";
and in my.pl :
#!/