Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: How can one get all possible combinations of elements of different arrays using File::Glob(bsd_glob)?

by jwkrahn (Monsignor)
on Apr 24, 2013 at 06:45 UTC ( #1030289=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # slurp in file into a string
    $/=''; $DNA = <FILE>; 
    # remove \n at end
    chomp($DNA);
    
  2. or download this
    # replace line endings with commata
    $DNA =~ s/\n/,/;
    
  3. or download this
    # replace newlines with commas
    $DNA =~ s/\n/,/g;
    
  4. or download this
    # replace newlines with commas
    $DNA =~ tr/\n/,/;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1030289]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2016-12-06 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (96 votes). Check out past polls.