New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here


by: Jonas Bartell


Marketplace > University of Pittsburgh > ComputerScienence > CS1555 > DATABASEMANAGEMENTSYSTEMSRECITATION
Jonas Bartell
GPA 3.77


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 8 page Class Notes was uploaded by Jonas Bartell on Monday October 26, 2015. The Class Notes belongs to CS1555 at University of Pittsburgh taught by PanosChrysanthis in Fall. Since its upload, it has received 90 views. For similar materials see /class/229382/cs1555-university-of-pittsburgh in ComputerScienence at University of Pittsburgh.

Similar to CS1555 at Pitt

Popular in ComputerScienence




Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/26/15
CS 1520 Fall 2005 Programming Languages for Web Applications 05 Perl cont Alexandros Labrinidis University of Pittsburgh How to run Perl programs revised Use text editor say pico to write and save program say hellop Option 1 perl w hellop1 Next time perl w hellopl Option 2 Make sure first line of hellop is the following binperl chmod ux hello p1 hello p1 Next time hellopl Aiexandros Labrinidis Univ 0 Pittsburgh 2 CS 1520 EH 2005 I ListsArraysSlices recap Assignment LHS vs RHS beniffer ben affleck jennifer lopez beniffer1 jennifer gardner fred barney 14 25 a b b a Scalar vs List context a beniffer print a n print bennifer n Alexandros Labiinidis Univ 0 Pittsburgh 3 CS 1520 all2005 I ListsArraysSlices Push Pop Push to right end of array Adds an element to end of list Iist 2 4 6 push Iist 5 Iist now 2 4 6 5 Push Iist 3 10 Iist now 2 4 6 5 3 10 Pop from right end of array Removes the last element of a list I P P0P Iist p becomes 10 I Iist now 2 4 6 5 3 Alexandros Labrinidis Univ 0 Pittsburgn 4 CS 1520 all 2005 I ListsArraysSlices ShiftUnshift Unshift to left end of array Adds an element to the beginning of list list 2 4 6 unshift list 7 list now 7 2 4 6 unshift list 1 12 list now 1 12 7 2 4 6 Shift from left end of array Removes the rst element of a list p shift list p becomes 1 list now 12 7 2 4 6 Alexandros Labiinidis Univ 0 Pittsburgh 5 CS 1520 all 2005 I ListsArraysSlices Sort Reverse I Sort sorts elements of an array Example x qwsma medium large y sort x X stays the same y is large medium small Reverse Reverses current order ie NOT the reverse sort order a 10 5 12 45 b reverse a a stays the same b is 45 12 5 10 Alexandros Labrinidis Univ 0 Pittsburgh 6 CS 1520 all 2005 il Control Structures ifthen if else if a gt 5 do nothing else a unless Unless agt5 I Alexandros Labnnldls Univ 0 Pittsburgh 7 CS 1520 all 2005 i Control Structures while while loop while a gt 5 do something until until a lt 5 a Alexandros Labnnldls Univ 0 Pittsburgh 8 CS 1520 all 2005 I Control Structures dowhile dowhile loop do do something while a gt 5 dountil loop do do something until a lt 5 Alexandros Labnnldls Univ 0 Pittsburgh 9 CS 1520 all2005 I InputOutput Output print simple printf formatted version Input standard input is accessed via ltSTDINgt will return 0 if no more input ltgt form is more general can read from files to access line within loop while ltSTDINgt print Alexandros Labnnldls Univ 0 Pittsburgh 10 CS 1520 all 2005 I Inputcon0 Scalar versus List context a ltSTDINgt reads next line of input b ltSTDINgt reads all lines at once Useful string functions lengthstr returns length of string uc converts to upper case lc converts to lower case chompstr removes trailing n Alexandros Labrinidis Univ 0 Pittsburgh 11 CS 1520 all 2005 I Hashes Arrays are nice index is always numeric Q Would it not be nice to access arrays using strings A Yes A using Hashes ooclass is a hash Initialization ciass cs1520quot SENSQ 5502quot cass cs1520quot gt SENSQ 5502quot cs1555 gt SENSQ 5502quot cass cs1520quot SENSQ 5502quot cs1555 SENSQ 5502quot Alexandros Labrinidis Univ 0 Pittsburgh 12 CS 1520 all 2005 I Hash Functions keys lohashname return the list of current keys fred a b fred c d fred15 143 list keysfred list a c 15 n keysfred n 3 foreach k keys fred print we have fredk at key kn values lohashname Alexandros Labnnidis Univ 0 Pittsburgh 13 CS 1520 all2005 I Hash functions cont each hashname Iterate over all elements of hash hashname lastname Alex Labrinidis lastname Panos Chrysanthis lastname John Ramirez while first last each lastname print The last name of first is lastn delete delete lastname Panos Alexandros Labnnidis Univ 0 Pittsburgh 14 CS 1520 all 2005 i Regular Expressions intro grep abc some le gt results while ltgt if abc print Alexandros Labnnldls Unlv O Plttsburgh 15 CS 1520 all 2005


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Bentley McCaw University of Florida

"I was shooting for a perfect 4.0 GPA this semester. Having StudySoup as a study aid was critical to helping me achieve my goal...and I nailed it!"

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."


"Their 'Elite Notetakers' are making over $1,200/month in sales by creating high quality content that helps their classmates in a time of need."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.