Author |
Message
|
skrv |
Posted: Thu Jan 24, 2013 11:06 am Post subject: Pearl Script |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
Hello,
Can anyone help with pearl Scripting.
I'm looking for equilant pearl code which can do -
======================
OS=`uname -s`
if [[ $OS = "Linux" ]]; then
my $HOME='/home/mqm'
else
my $HOME='/export/home/mqm'
fi
======================
thanks |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 24, 2013 11:13 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I don't know what Pearl is.
Otherwise, start here |
|
Back to top |
|
 |
skrv |
Posted: Thu Jan 24, 2013 11:16 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
Sorry it's a typo..... am looking for perl script.
if anyone can help with this, that would be gr8. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 24, 2013 11:18 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
skrv wrote: |
Sorry it's a typo..... am looking for perl script.
if anyone can help with this, that would be gr8. |
Did you click the link I posted?
It will provide you with step by step instructions. |
|
Back to top |
|
 |
skrv |
Posted: Thu Jan 24, 2013 11:19 am Post subject: |
|
|
Centurion
Joined: 26 Oct 2012 Posts: 118
|
hmmmm ... am not good at all with scripting, so it would definitely take time for me to learn it  |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 24, 2013 11:25 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
skrv wrote: |
hmmmm ... am not good at all with scripting, so it would definitely take time for me to learn it  |
It would take me time to give you the answer.
 |
|
Back to top |
|
 |
mvic |
Posted: Thu Jan 24, 2013 3:39 pm Post subject: Re: Pearl Script |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
skrv wrote: |
I'm looking for equilant pearl code which can do ... |
I think you'll be able to find your solution really easily if you just review some example Perl code that you find by searching around.
Or better still, take 30 minutes to read through an excellent introduction such as "Perl introduction for beginners" at point 2 on the page already given by mqjeff. |
|
Back to top |
|
 |
|