Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

(tye)Re: Portably transforming a string to a valid filename

by tye (Cardinal)
on Feb 20, 2001 at 21:51 UTC ( #59721=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        perl titles.pl <thispost.txt >thispost.enc
        perl titles.pl -d <thispost.enc >thispost.dec
    ...
        perl titles.pl -e <perl.exe >perl.enc
        perl titles.pl -e -d <perl.enc >perl.dec
        fc perl.exe perl.dec
    
  2. or download this
    Well-l_you_need_fairly_long_file_names_for_this_to_work_so_that
    eliminates_DOS_and_the_14--character_Unix_file_systems_but_also
    ...
    my_-dcode-q_join_-BBL-_-g0-g..-g9-GLG-a-g..-gz-GLG-A-g..-gZ-GLGYGLG-.-
    +GO-
    [...]
    ________-2_elsif-h__1_-QQ-_length-HD-1-i__-FF-__0_-PQ-_index-HD-punct-
    +LD-1-i__-i_-0
    
  3. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
            print $decode ? decode($_) : encode($_), "\n";
        }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://59721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (12)
As of 2014-11-26 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (172 votes), past polls