Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 6th April 2012, 03:52 PM
meine's Avatar
meine Offline
Registered User
 
Join Date: Apr 2009
Location: Brabant NL
Posts: 148
linuxfirefox
how to use perl script!

hi,

i'd like to make permutations of words, numbers etc just for fun and discovered perl-algorithm-fastpermute http://www.perzl.org/aix/index.php?n...hm-FastPermute I installed the software with yum.

my problem is that I don't know how to start the software...

any help?

TIA Meine
__________________
meine
linux fedora 18 LXDE & fedora 18 Security
Reply With Quote
  #2  
Old 6th April 2012, 04:25 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
linuxfirefox
Re: how to use perl script!

It's a Perl module, not a stand alone program. You can't "launch" it in any way or form. What you need to do is to write a Perl script that uses the module. Check the module's page on CPAN (you find the link on the page you are referrrinng to and check the README on that CPAN page for an example of its usage.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #3  
Old 6th April 2012, 05:10 PM
meine's Avatar
meine Offline
Registered User
 
Join Date: Apr 2009
Location: Brabant NL
Posts: 148
linuxfirefox
Re: how to use perl script!

TNX

found the readme on http://cpansearch.perl.org/src/ROBIN...e-0.999/README

will need some study for me but that's the challenge
__________________
meine
linux fedora 18 LXDE & fedora 18 Security
Reply With Quote
  #4  
Old 6th April 2012, 09:05 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 3,922
linuxfirefox
Re: how to use perl script!

Quote:
Originally Posted by meine View Post

will need some study for me but that's the challenge
That's what it's all about.
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #5  
Old 7th April 2012, 04:22 PM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 4,616
linuxfedorafirefox
Re: how to use perl script!

For permuting I prefer the python way (use tabs for the indents):
Code:
#!/usr/bin/python
from sys import *
from itertools import *
input = argv[1]
for sequence in permutations(input):
    for char in sequence:
        stdout.write(char)
    print
An example of running the script (permute.py) after making it executable (chmod +x permute.py):
Code:
$ ./permute.py abc
abc
acb
bac
bca
cab
cba
__________________
OS: Fedora 18 x86_64 | CPU: AMD64 3700+ 2.2GHz | RAM: 2GB PC3200 DDR | Disk: 160GB PATA | Video: ATI Radeon 7500 AGP 64MB | Sound: Turtle Beach Santa Cruz CS4630 | Ethernet: Realtek 8110SC
Reply With Quote
Reply

Tags
perl, script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
modifying perl script reaky Programming & Packaging 3 6th July 2009 10:31 AM
SSH account - perl script rodesignweb Using Fedora 2 15th June 2009 01:15 PM
Eclipse - cant run my perl script? dmurat Using Fedora 2 9th March 2009 11:21 AM
Convert bash script to perl script homey Programming & Packaging 1 2nd September 2006 04:24 AM
Perl Script Help codontek Programming & Packaging 3 27th August 2004 12:09 PM


Current GMT-time: 17:38 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat