Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Output to another file help

by Kenosis (Priest)
on Nov 08, 2012 at 22:13 UTC ( #1003001=note: print w/ replies, xml ) Need Help??

in reply to [SOLVED] Output to another file help

...I need to make an output file with the first letter of the first name, last 3 letters of last name...

use strict; use warnings; my $firstName = 'PATRICK'; my $lastName = 'STERL'; my $fileNamePart = "$firstName$lastName" =~ s/^(.).+(...)$/\L$1$2/r; warn qq{Be careful: "$fileNamePart" may be an obscene word.};

Comment on Re: Output to another file help
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2015-11-27 03:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (715 votes), past polls