Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by tye (Sage)
on Feb 20, 2001 at 21:51 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://59721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-12-07 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (49 votes). Check out past polls.