Current location: Hot Scripts Forums » Programming Languages » Perl » Perl for a dummy

Perl for a dummy

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 01-25-06, 12:45 PM
kragnesb414 kragnesb414 is offline
New Member
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Perl for a dummy

Greetings, new member here.

I have what I believe is a very basic perl scripting question, hopefully someone can point me in the right direction.

First of all some background. I have several years of UNIX scripting experience. The company I work for is moving away from UNIX platforms towards Windows so now I am attempting to use Perl scripts to do the kinds of things in Windows that I used to do in UNIX.

I have O'Reilly's "Camel" book (2nd edition), "Perl Core Language Little Black Book," and "Perl for Dummies." Between these I can usually find information on the Perl equivalent of the UNIX command I am accustomed to. Except for I don't know how to construct a statement to perform multiple actions on an input string. In UNIX I would use a pipe "|". For example, say I wanted to determine the uppercase value of the third character in an input string, in UNIX I would do the following:

STRING=terry
echo $STRING | cut -c 3 | tr [a-z] [A-Z]

How would you recommend constructing a similar statement in Perl?

Thanks,
Terry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
perl for a dummy kragnesb414 New Members & Introductions 0 12-21-05 03:37 PM
Avoid chaging the path to perl (shebang) on every upload to server uniqueuser Perl 2 04-19-05 03:27 PM
converting perl script to php help!! macruddace Perl 1 04-14-05 03:38 PM
Perl FormMail Problem ennanguyen2002 Perl 2 03-09-05 05:47 PM
Perl Programmer sought for small issue usallsys Job Offers & Assistance 0 03-04-05 08:09 AM


All times are GMT -5. The time now is 03:55 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.