This document provides an overview of Perl data structures including scalars, lists, hashes, references, and filehandles. It discusses how to define and access each type of data structure through examples. Key points include: Perl supports scalars, lists, hashes, and references as basic data types; lists maintain order while hashes provide associative arrays; references allow creating aliases to existing data; and data from any structure can be accessed individually or iterated over using functions like map, grep and foreach.
If your not using an ORM (object relational mapper) and are still writing SQL by hand, here's what you need to know.
An introduction into DBIx::Class and some of the concepts and goodies you should be aware off.
This document provides an introduction and overview of DBIx::Class, an ORM (object relational mapper) for Perl. It discusses setting up tables for an authors and books example database, and performing CRUD (create, read, update, delete) operations both manually using SQL and using DBIx::Class. It also covers creating models with Schema::Loader, debugging, overloading result and result set classes, and inflating/deflating columns.
Perl, a cross-platform, open-source computer programming language used widely in the commercial and private computing sectors. Perl is a favourite among Web developers for its flexible, continually evolving text-processing and problem-solving capabilities.
My Beginners Perl tutorial, much abbreviated and as presented at the London Perl Workshop on Dec 1st 2007.
Also includes the section on Regular Expressions that we didn't have time for on the day.
This document summarizes the key topics that will be covered in an introduction to Perl programming course on day 2, including types of variables, references, sorting, and object orientation. The schedule outlines times for lectures, breaks and lunch. Resources provided include slides, slideshare, and an online community.
The document outlines an intermediate Perl training course covering various Perl topics including:
- Types of variables (lexical and package)
- References and complex data structures
- Sorting techniques including custom sorting functions
- Creating reusable code through Perl modules and exporting subroutines
The schedule includes sessions on variables, references, sorting, modules and other topics with breaks for coffee and lunch.
This document provides an overview and schedule for an introduction to Perl course. The key topics that will be covered include: what Perl is, creating and running Perl programs, Perl variables, operators and functions, conditional constructs, subroutines, regular expressions, finding and using modules. The schedule outlines breaks and lunch over the course of the day from 09:45 to 17:00. Resources for slides and further information are also listed.
This document introduces best practices for writing clean and readable Perl code. It provides examples of poorly formatted code and discusses improvements like using strict and warnings, consistent indentation, descriptive variable names, and limiting line length to 80 characters. The examples demonstrate separating code into logical blocks, spacing around operators, and vertical alignment to improve readability. Adopting these styles and standards helps code be more maintainable as projects evolve over time.
If your not using an ORM (object relational mapper) and are still writing SQL by hand, here's what you need to know.
An introduction into DBIx::Class and some of the concepts and goodies you should be aware off.
This document provides an introduction and overview of DBIx::Class, an ORM (object relational mapper) for Perl. It discusses setting up tables for an authors and books example database, and performing CRUD (create, read, update, delete) operations both manually using SQL and using DBIx::Class. It also covers creating models with Schema::Loader, debugging, overloading result and result set classes, and inflating/deflating columns.
Perl, a cross-platform, open-source computer programming language used widely in the commercial and private computing sectors. Perl is a favourite among Web developers for its flexible, continually evolving text-processing and problem-solving capabilities.
My Beginners Perl tutorial, much abbreviated and as presented at the London Perl Workshop on Dec 1st 2007.
Also includes the section on Regular Expressions that we didn't have time for on the day.
This document summarizes the key topics that will be covered in an introduction to Perl programming course on day 2, including types of variables, references, sorting, and object orientation. The schedule outlines times for lectures, breaks and lunch. Resources provided include slides, slideshare, and an online community.
The document outlines an intermediate Perl training course covering various Perl topics including:
- Types of variables (lexical and package)
- References and complex data structures
- Sorting techniques including custom sorting functions
- Creating reusable code through Perl modules and exporting subroutines
The schedule includes sessions on variables, references, sorting, modules and other topics with breaks for coffee and lunch.
This document provides an overview and schedule for an introduction to Perl course. The key topics that will be covered include: what Perl is, creating and running Perl programs, Perl variables, operators and functions, conditional constructs, subroutines, regular expressions, finding and using modules. The schedule outlines breaks and lunch over the course of the day from 09:45 to 17:00. Resources for slides and further information are also listed.
This document introduces best practices for writing clean and readable Perl code. It provides examples of poorly formatted code and discusses improvements like using strict and warnings, consistent indentation, descriptive variable names, and limiting line length to 80 characters. The examples demonstrate separating code into logical blocks, spacing around operators, and vertical alignment to improve readability. Adopting these styles and standards helps code be more maintainable as projects evolve over time.
The document discusses Perl 6 types and type checking. It shows examples of declaring scalar, array and hash variables with implicit and explicit types like Any, Int and Str. It then demonstrates type checking failures when assigning values of the wrong type. It also covers defining custom types through subtypes and multi dispatch to handle different types.
This document discusses smartmatch (~~), a feature introduced in Perl 5.10 that provides pattern matching capabilities. It was initially designed to work similarly to equality (==) checks but is now more flexible. The document provides examples of how smartmatch can be used for tasks like command line argument checking, array element checking, IP address matching, and URL routing in a concise way. It advocates keeping the smartmatch operator in Perl.
What makes your code slow? How do you make it faster? And how do you prove it?
This talk will describe my adventures benchmarking and optimizing ordered hashes in Perl, culminating in the release of Hash::Ordered (http://p3rl.org/Hash::Ordered) — which outperforms all other CPAN alternatives, often by a substantial margin. We will cover:
* How to customize Benchmark.pm
* How and why to benchmark at different scales
* Why tied anything in Perl is a horrible idea
* How ordered hashes got faster from a simple algorithm change
This is the ninth set of slightly updated slides from a Perl programming course that I held some years ago.
I want to share it with everyone looking for intransitive Perl-knowledge.
A table of content for all presentations can be found at i-can.eu.
The source code for the examples and the presentations in ODP format are on https://github.com/kberov/PerlProgrammingCourse
This document provides an overview and schedule for a one-day introduction to Perl programming course. It covers what will be taught including creating and running Perl programs, variables, operators, functions, input/output, and more. The schedule includes breaks and lunch and notes resources available online for the slides.
The document provides an introduction to Perl and XPATH including XPATH terminology, syntax, and examples of using XPATH to query XML documents. Sample XML data and XPATH queries are presented to demonstrate how to search for nodes and extract values from the XML tree.
Arrays allow storing multiple values in a single variable. There are indexed arrays which use numeric indices and associative arrays which use named keys. Arrays can be defined using the array() function or by directly assigning values. Arrays can be looped through using foreach loops or functions like sizeof() to get the size. Multidimensional arrays store arrays within other arrays.
Implementing Glacier's Tree Hash using recursive, functional programming in Perl5. With Keyword::Declare we get clean syntax for tail-call elimination. Result is a simple, fast, functional solution.
This document provides an overview of PHP arrays, including:
- Arrays allow storing multiple elements that are accessed via numeric indexes. Elements can be of any type.
- Arrays can be iterated over using foreach loops or traditional for/while loops.
- Arrays have built-in functions for sorting, searching, merging, reversing, and more.
- Multidimensional arrays allow storing other arrays as elements.
- Associative arrays use named keys instead of numeric indexes to access elements.
- Exercises demonstrate creating multidimensional arrays and outputting array data to HTML tables.
Perl 5.10 for People Who Aren't Totally InsaneRicardo Signes
The document discusses new features and changes in Perl 5.10. Some key points include:
- Perl 5.10 introduces many new features and changes that are not backwards compatible with Perl 5.8.x.
- Notable new features include lexically scoped pragmas, pluggable regular expression engines, smarter pattern matching, and state variables.
- The document provides examples of new operators and functions like smart matching (~~), given/when, and say that output a newline.
This document discusses how Vim can improve productivity for Perl coding. It provides examples of using Vim motions and modes like Normal mode, Insert mode, and Visual mode to efficiently edit code. It also covers Vim features like syntax highlighting, custom syntax files, key mappings, and text objects that are useful for Perl. The document advocates that Vim is a powerful editor rather than an IDE and highlights how it can save significant time compared to less efficient editing methods.
This document provides an overview of the Perl programming language. It covers what Perl is, how to create and run Perl scripts, scalar and array variables, hashes, control structures like if/else and loops, file operations, and common Perl functions like split and join. Advanced Perl concepts like subroutines, regular expressions, and object-oriented programming are also mentioned. Resources for learning more about Perl like documentation, books, and mailing lists are provided at the end.
Simple Ways To Be A Better Programmer (OSCON 2007)Michael Schwern
"Simple Ways To Be A Better Programmer' as presented at OSCON 2007 by Michael G Schwern.
The audio is still out of sync, working on it. Downloading will be available once the sync is done.
The document provides an introduction to PHP including what PHP is, the basic syntax, variable types, operators, control structures like if/else and loops, and functions. PHP is a server-side scripting language used for web development that is embedded into HTML. It requires a web server with PHP enabled and uses <?php ?> tags. The document outlines the basic building blocks of PHP like variables, data types, operators, and control flow structures.
This document provides an overview of hashes in Perl programming. It defines a hash as a set of key-value pairs where keys are not pre-declared and can be created during assignment. Functions for working with hash elements include exists(), defined(), and delete(). Other hash functions include each() to iterate over elements, keys() to return a list of all keys, and values() to return a list of all values.
The document discusses using functional programming techniques in Perl to efficiently calculate tree hashes of large files uploaded in chunks to cloud storage services. It presents a tree_fold keyword and implementation that allows recursively reducing a list of values using a block in a tail-call optimized manner to avoid stack overflows. This approach is shown to provide concise, efficient and elegant functional code for calculating tree hashes in both Perl 5 and Perl 6.
Perl6 regular expression ("regex") syntax has a number of improvements over the Perl5 syntax. The inclusion of grammars as first-class entities in the language makes many uses of regexes clearer, simpler, and more maintainable. This talk looks at a few improvements in the regex syntax and also at how grammars can help make regex use cleaner and simpler.
PHP has its own treasure chest of classic mistakes that surprises even the most seasoned expert : code that dies just by changing its namespace, strpos() that fails to find strings or arrays that changes without touching them. Do that get on your nerves too? Let’s make a list of them, so we can always teach them to the new guys, spot them during code reviews and kick them out of our code once and for all. Come on, you’re not frightening us?
Perl is an open-source, cross-platform scripting language that is multi-paradigm and uses dynamic typing. It was created in 1987 and is popular for web programming using CGI scripts. Perl has scalars, arrays, hashes, and complex data types like references that allow it to represent complex data structures. It supports common programming constructs like conditionals, loops, subroutines, pattern matching and more.
Introduction à CoffeeScript pour ParisRB jhchabran
This document provides an overview of CoffeeScript, highlighting some of its key features and benefits compared to JavaScript. It discusses CoffeeScript's lighter syntax, object literals, list comprehensions, and implicit returns. It also addresses some criticisms of CoffeeScript, such as concerns about it being "just JavaScript" or a "toy language." Overall, the document promotes CoffeeScript as a cleaner syntax for writing JavaScript code.
The document discusses Perl 6 types and type checking. It shows examples of declaring scalar, array and hash variables with implicit and explicit types like Any, Int and Str. It then demonstrates type checking failures when assigning values of the wrong type. It also covers defining custom types through subtypes and multi dispatch to handle different types.
This document discusses smartmatch (~~), a feature introduced in Perl 5.10 that provides pattern matching capabilities. It was initially designed to work similarly to equality (==) checks but is now more flexible. The document provides examples of how smartmatch can be used for tasks like command line argument checking, array element checking, IP address matching, and URL routing in a concise way. It advocates keeping the smartmatch operator in Perl.
What makes your code slow? How do you make it faster? And how do you prove it?
This talk will describe my adventures benchmarking and optimizing ordered hashes in Perl, culminating in the release of Hash::Ordered (http://p3rl.org/Hash::Ordered) — which outperforms all other CPAN alternatives, often by a substantial margin. We will cover:
* How to customize Benchmark.pm
* How and why to benchmark at different scales
* Why tied anything in Perl is a horrible idea
* How ordered hashes got faster from a simple algorithm change
This is the ninth set of slightly updated slides from a Perl programming course that I held some years ago.
I want to share it with everyone looking for intransitive Perl-knowledge.
A table of content for all presentations can be found at i-can.eu.
The source code for the examples and the presentations in ODP format are on https://github.com/kberov/PerlProgrammingCourse
This document provides an overview and schedule for a one-day introduction to Perl programming course. It covers what will be taught including creating and running Perl programs, variables, operators, functions, input/output, and more. The schedule includes breaks and lunch and notes resources available online for the slides.
The document provides an introduction to Perl and XPATH including XPATH terminology, syntax, and examples of using XPATH to query XML documents. Sample XML data and XPATH queries are presented to demonstrate how to search for nodes and extract values from the XML tree.
Arrays allow storing multiple values in a single variable. There are indexed arrays which use numeric indices and associative arrays which use named keys. Arrays can be defined using the array() function or by directly assigning values. Arrays can be looped through using foreach loops or functions like sizeof() to get the size. Multidimensional arrays store arrays within other arrays.
Implementing Glacier's Tree Hash using recursive, functional programming in Perl5. With Keyword::Declare we get clean syntax for tail-call elimination. Result is a simple, fast, functional solution.
This document provides an overview of PHP arrays, including:
- Arrays allow storing multiple elements that are accessed via numeric indexes. Elements can be of any type.
- Arrays can be iterated over using foreach loops or traditional for/while loops.
- Arrays have built-in functions for sorting, searching, merging, reversing, and more.
- Multidimensional arrays allow storing other arrays as elements.
- Associative arrays use named keys instead of numeric indexes to access elements.
- Exercises demonstrate creating multidimensional arrays and outputting array data to HTML tables.
Perl 5.10 for People Who Aren't Totally InsaneRicardo Signes
The document discusses new features and changes in Perl 5.10. Some key points include:
- Perl 5.10 introduces many new features and changes that are not backwards compatible with Perl 5.8.x.
- Notable new features include lexically scoped pragmas, pluggable regular expression engines, smarter pattern matching, and state variables.
- The document provides examples of new operators and functions like smart matching (~~), given/when, and say that output a newline.
This document discusses how Vim can improve productivity for Perl coding. It provides examples of using Vim motions and modes like Normal mode, Insert mode, and Visual mode to efficiently edit code. It also covers Vim features like syntax highlighting, custom syntax files, key mappings, and text objects that are useful for Perl. The document advocates that Vim is a powerful editor rather than an IDE and highlights how it can save significant time compared to less efficient editing methods.
This document provides an overview of the Perl programming language. It covers what Perl is, how to create and run Perl scripts, scalar and array variables, hashes, control structures like if/else and loops, file operations, and common Perl functions like split and join. Advanced Perl concepts like subroutines, regular expressions, and object-oriented programming are also mentioned. Resources for learning more about Perl like documentation, books, and mailing lists are provided at the end.
Simple Ways To Be A Better Programmer (OSCON 2007)Michael Schwern
"Simple Ways To Be A Better Programmer' as presented at OSCON 2007 by Michael G Schwern.
The audio is still out of sync, working on it. Downloading will be available once the sync is done.
The document provides an introduction to PHP including what PHP is, the basic syntax, variable types, operators, control structures like if/else and loops, and functions. PHP is a server-side scripting language used for web development that is embedded into HTML. It requires a web server with PHP enabled and uses <?php ?> tags. The document outlines the basic building blocks of PHP like variables, data types, operators, and control flow structures.
This document provides an overview of hashes in Perl programming. It defines a hash as a set of key-value pairs where keys are not pre-declared and can be created during assignment. Functions for working with hash elements include exists(), defined(), and delete(). Other hash functions include each() to iterate over elements, keys() to return a list of all keys, and values() to return a list of all values.
The document discusses using functional programming techniques in Perl to efficiently calculate tree hashes of large files uploaded in chunks to cloud storage services. It presents a tree_fold keyword and implementation that allows recursively reducing a list of values using a block in a tail-call optimized manner to avoid stack overflows. This approach is shown to provide concise, efficient and elegant functional code for calculating tree hashes in both Perl 5 and Perl 6.
Perl6 regular expression ("regex") syntax has a number of improvements over the Perl5 syntax. The inclusion of grammars as first-class entities in the language makes many uses of regexes clearer, simpler, and more maintainable. This talk looks at a few improvements in the regex syntax and also at how grammars can help make regex use cleaner and simpler.
PHP has its own treasure chest of classic mistakes that surprises even the most seasoned expert : code that dies just by changing its namespace, strpos() that fails to find strings or arrays that changes without touching them. Do that get on your nerves too? Let’s make a list of them, so we can always teach them to the new guys, spot them during code reviews and kick them out of our code once and for all. Come on, you’re not frightening us?
Perl is an open-source, cross-platform scripting language that is multi-paradigm and uses dynamic typing. It was created in 1987 and is popular for web programming using CGI scripts. Perl has scalars, arrays, hashes, and complex data types like references that allow it to represent complex data structures. It supports common programming constructs like conditionals, loops, subroutines, pattern matching and more.
Introduction à CoffeeScript pour ParisRB jhchabran
This document provides an overview of CoffeeScript, highlighting some of its key features and benefits compared to JavaScript. It discusses CoffeeScript's lighter syntax, object literals, list comprehensions, and implicit returns. It also addresses some criticisms of CoffeeScript, such as concerns about it being "just JavaScript" or a "toy language." Overall, the document promotes CoffeeScript as a cleaner syntax for writing JavaScript code.
The document summarizes a Perl Mongers course on data and operators in Perl. It covers basic data types like scalars, arrays, and hashes. It describes strings, numbers, and how to perform operations on them. It also discusses control structures like conditionals and loops for program flow. Finally, it mentions input/output functions like STDIN and STDOUT.
This document provides a brief summary of Perl programming concepts including scalars, arrays, regular expressions, file handling, control structures, and functions. It covers basic syntax such as using semicolons, comments, variables, operators, and built-in variables. Array manipulation like indexing, pushing, and popping elements is described. File I/O using open, close and reading from files or standard streams is outlined. Common control structures like if/else, foreach, and while are listed along with comparison and logical operators. Regular expressions for pattern matching and substitution are covered including special characters.
This document provides a brief summary of Perl programming concepts including scalars, arrays, regular expressions, file handling, control structures, and functions. It covers basic syntax such as using semicolons, comments, variables, operators, and built-in variables. Array manipulation like indexing, pushing, and popping elements is described. File I/O using open, close and reading from files or standard streams is outlined. Common control structures like if/else, for loops, and while loops are listed. Regular expressions for pattern matching and substitution are summarized along with special characters. Miscellaneous functions and defining subroutines are also mentioned.
This document provides a brief summary of Perl programming concepts including scalars, arrays, regular expressions, file handling, control structures, and functions. It covers basic syntax such as using semicolons, comments, variables, operators, and built-in variables. Array manipulation like indexing, pushing, and popping elements is described. File I/O using open, close and reading from files or standard streams is outlined. Common control structures like if/else, foreach, and while are listed along with comparison and logical operators. Regular expressions for pattern matching and substitution are covered including special characters.
This document provides a brief summary of Perl programming concepts including scalars, arrays, regular expressions, file handling, control structures, and functions. It covers basic syntax such as using semicolons, comments, variables, operators, and built-in variables. Array manipulation like indexing, pushing, and popping elements is described. File I/O using open, close and reading from files or standard streams is outlined. Common control structures like if/else, foreach, and while are listed along with comparison and logical operators. Regular expressions for pattern matching and substitution are covered including special characters.
This document summarizes the history of PHP persistence from 1995 to present day. It begins with early file handling in PHP/FI in 1995 and the introduction of database support. It then discusses the evolution of code reusability through functions and classes. Professional abstraction layers like PEAR and later ORM frameworks provided more robust and standardized APIs. NoSQL databases and drivers were later incorporated, moving beyond relational databases. Current frameworks provide object document mapping for non-SQL databases like MongoDB.
Perl Bag of Tricks - Baltimore Perl mongersbrian d foy
The document discusses various Perl tricks and techniques, including using regular expressions to manipulate strings, testing code with arrays of test cases, and handling errors gracefully by returning a null object.
The document describes a Perl script that saves entire web pages and their assets like images by parsing HTML and CSS. It handles relative links, saves external files locally, and removes scripts for security. The script is available on GitHub for others to use.
This document provides an introduction and overview of the Perl 6 programming language. It covers topics such as getting started with Perl 6 using Pugs, basic program structure, scalars, variables, control structures, arrays, hashes, input/output, and more. The summary is designed to give a high-level understanding of the key topics covered in the document in 3 sentences or less.
Here, you can get the overview of PERL extraction language. PERL looks like a C-language. so you can learn quickly. at the end of slide you feel you will be familiar with PERL.
This document discusses PHP functions and arrays. It covers basic syntax for defining functions, returning values from functions, and variable scope. It also covers array basics like indexing and printing arrays, as well as operations like sorting, searching, and iterating over arrays. Functions for stacks, queues and sets using arrays are also demonstrated. The document is a comprehensive reference for working with functions and arrays in PHP.
This document provides a summary of a tutorial on learning the Perl 6 programming language. It covers topics like scalars, variables, control structures, I/O, subroutines, regular expressions, modules, classes and objects. It suggests that in the 80 minute session, the presenters will be able to cover data, variables, control structures, I/O, subroutines and regular expressions, but may not have time for everything. It also provides information on getting started with Pugs and writing simple Perl 6 programs, as well as examples of core Perl 6 concepts like objects, methods, strings, arithmetic, conditionals and loops.
Perl is a high-level scripting language useful for tasks like parsing and restructuring data files, CGI scripts, and more. It was created in 1987 by Larry Wall as a "glue" language to connect systems. Perl code is compiled at runtime. Key features include regular expressions, hashes for associative arrays, object-oriented capabilities, and extensive standard and third-party libraries. Perl uses C-like syntax and data types like scalars, lists, and hashes. It supports control structures like if/else, for loops, and subroutines for modular programming. Perl is well-suited for text manipulation and system administration tasks.
Tied variables allow the underlying implementation of scalars, arrays, hashes and filehandles to be customized by tying them to classes. This allows the normal Perl syntax and usage to remain the same while providing flexibility in how the data is stored and accessed behind the scenes. The tie interface hides this complexity from the user and makes the tied variables act like normal variables.
Taking Perl to Eleven with Higher-Order FunctionsDavid Golden
Sometimes, you just need your Perl to go one higher. This talk will teach you how to use functions that return functions for powerful, succinct solutions to some repetitive coding problems. Along the way, you’ll see concrete examples using higher-order Perl to generate declarative, structured “fake” data for testing.
This document provides an overview of the Perl programming language. It introduces key Perl concepts like data types, scalars, arrays, hashes, flow control, input/output, and operators. Perl allows variables to be of any type and handles automatic type conversion. It supports common data structures like arrays and associative arrays (hashes). Subroutines provide modularity and scoping rules determine variable visibility. Perl scripts can process command line arguments, files, and network connections.
This document discusses various Perl concepts including:
- Using local to localize variables within a block
- Slurping a file into a scalar variable
- Using $_ as the default iterator variable in a foreach loop
- Using Try::Tiny to catch exceptions
- Creating private methods using Sub::Name
- Undefined variables after iterating over an array with foreach
- Matching regular expressions
- Best practices for module loading with @INC and PERL5LIB
Topological indices (t is) of the graphs to seek qsar models of proteins com...Jitendra Kumar Gupta
Currently, there is an increasing necessity for quick computational chemistry methods to predict proteins properties very accurately. This is facilitated by the improvements in various bioinformatics techniques as well as high computational power available these days. Hence quick and fast running techniques are being developed for analysing many macromolecules computationally.
In this sense, quantitative structure activity relationship (QSAR) is a widely covered field, with more than 1600 molecular descriptors introduced up to now Most of the molecular descriptors have been applied to small molecules.
Nevertheless, the QSAR studies for DNA and protein sequences may be classified as an emerging field. One of the most promising applications of QSAR to proteins relates to the prediction of thermal stability, which is an essential issue in protein science.
Connectivity indices, also called topological indices (TIs) serve fast calculations. TIs are graph invariants of different kinds of proteins.
The interest in TIs has exploded because we can use them to describe also macromolecular and macroscopic systems represented by complex networks of interactions (links) between the different parts of a system (nodes) such as: drug-target, protein-protein, metabolic, host-parasite, brain cortex, parasite disease spreading, internet, or social networks. Here, we use TI’s to analyze protein-protein complexes.
How to Add Chatter in the odoo 17 ERP ModuleCeline George
In Odoo, the chatter is like a chat tool that helps you work together on records. You can leave notes and track things, making it easier to talk with your team and partners. Inside chatter, all communication history, activity, and changes will be displayed.
How to Build a Module in Odoo 17 Using the Scaffold MethodCeline George
Odoo provides an option for creating a module by using a single line command. By using this command the user can make a whole structure of a module. It is very easy for a beginner to make a module. There is no need to make each file manually. This slide will show how to create a module using the scaffold method.
A workshop hosted by the South African Journal of Science aimed at postgraduate students and early career researchers with little or no experience in writing and publishing journal articles.
Walmart Business+ and Spark Good for Nonprofits.pdfTechSoup
"Learn about all the ways Walmart supports nonprofit organizations.
You will hear from Liz Willett, the Head of Nonprofits, and hear about what Walmart is doing to help nonprofits, including Walmart Business and Spark Good. Walmart Business+ is a new offer for nonprofits that offers discounts and also streamlines nonprofits order and expense tracking, saving time and money.
The webinar may also give some examples on how nonprofits can best leverage Walmart Business+.
The event will cover the following::
Walmart Business + (https://business.walmart.com/plus) is a new shopping experience for nonprofits, schools, and local business customers that connects an exclusive online shopping experience to stores. Benefits include free delivery and shipping, a 'Spend Analytics” feature, special discounts, deals and tax-exempt shopping.
Special TechSoup offer for a free 180 days membership, and up to $150 in discounts on eligible orders.
Spark Good (walmart.com/sparkgood) is a charitable platform that enables nonprofits to receive donations directly from customers and associates.
Answers about how you can do more with Walmart!"
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
How to Make a Field Mandatory in Odoo 17Celine George
In Odoo, making a field required can be done through both Python code and XML views. When you set the required attribute to True in Python code, it makes the field required across all views where it's used. Conversely, when you set the required attribute in XML views, it makes the field required only in the context of that particular view.
How to Setup Warehouse & Location in Odoo 17 InventoryCeline George
In this slide, we'll explore how to set up warehouses and locations in Odoo 17 Inventory. This will help us manage our stock effectively, track inventory levels, and streamline warehouse operations.
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
हिंदी वर्णमाला पीपीटी, hindi alphabet PPT presentation, hindi varnamala PPT, Hindi Varnamala pdf, हिंदी स्वर, हिंदी व्यंजन, sikhiye hindi varnmala, dr. mulla adam ali, hindi language and literature, hindi alphabet with drawing, hindi alphabet pdf, hindi varnamala for childrens, hindi language, hindi varnamala practice for kids, https://www.drmullaadamali.com
7. Perl ABC Data Structure
Special Things – Nested List
There is NOT anythig like list of lists
#+begin_src perl
@a = qw(fred barney betty wilma);
@b = ("tom", @a, "jerry"); # be careful
# what you actually get is
@b = qw(tom fred barney betty wilma jerry);
#+end_src
8. Perl ABC Data Structure
Special Things – Nested List
But … there is nested list in the real world
What you really mean is
#+begin_src perl
@a = qw(fred barney betty wilma);
@b = ("tom", [ @a ], "jerry");
@b = ("tom", @a, "jerry");
#+end_src
#+begin_src perl
$c = [ @a ]; $c = @a;
@b = ("tom", $c, "jerry");
#+end_src
9. Perl ABC Data Structure
Special Things – Nested Hash
There is nested hash in the real world
#+begin_src perl
$words_nest{ mash } = {
captain => "pierce",
%words_nest = (
major => "burns",
fred => "camel",
barney => "llama", corporal => "radar",
};
betty => "alpaca",
wilma => "alpaca",
jetsons => {
husband => "george",
wife => "jane",
"his boy" => "elroy", # Key quotes needed.
},
);
#+end_src
10. Perl ABC Data Access
Data Access
Access Scalar Data
Access List Data
Access Hash Data
11. Perl ABC Data Access
Data Access
Access Scalar Data
Access List Data
Access Hash Data
12. Perl ABC Data Access
Scalar
$fred = "pay"; $fredday = "wrong!";
$barney = "It's $fredday";
# not payday, but "It's wrong!"
$barney = "It's ${fred}day";
# now, $barney gets "It's payday"
$barney2 = "It's $fred"."day";
# another way to do it
$barney3 = "It's " . $fred . "day";
# and another way
13. Perl ABC Data Access
Data Access
Access Scalar Data
Access List Data
Access Hash Data
16. Perl ABC Data Access
List – access as a whole
foreach
map
grep
17. Perl ABC Data Access
List – access as a whole
foreach
#+begin_src perl
@a = (3,5,7,9);
foreach $one (@a) {
$one *= 3;
}
# @a is now (9,15,21,27)
Notice how altering $one in fact altered each element of @a.
This is a feature, not a bug.
18. Perl ABC Data Access
List – access as a whole
map
@a = (3,5,7,9);
@b = map { $_ * 3 } @a; # @b is now (9,15,21,27)
@c = map { $_ > 5 } @a; # @c is now (,1,1)
grep
@a = (3,5,7,9);
@c = grep { $_ > 5 } @a; # @c is now (7,9)
@c = grep { $_ > 5 ? $_ : ()} @a; # equivalent as map
19. Perl ABC Data Access
List – access as a whole
map and equivalent foreach
@a = (3,5,7,9);
@b = map { $_ * 3 } @a; # @b is now (9,15,21,27)
# equivalent foreach
foreach my $a (@a) {
push @b, $a * 3; # did not return values
}
20. Perl ABC Data Access
List – access as a whole
sub time3 {
map and equivalent foreach
my $num = shift;
@a = (3,5,7,9); return $num * 3
}
@b = map { $_ * 3 } @a;
$func = sub {
my $num = shift;
return $num * 3
}
# equivalents sub my_map {
@b = map &time3($_) @a; my ($func, $data) = @_;
@b = map &$func($_) @a; foreach $a (@$data) {
@b = my_map &time3, @a; push @b, &$func($a);
@b = my_map $func, @a; }
return @b;
}
24. Perl ABC Data Access
Hash – access nested elements
%h_nest = (
fred => "camel",
barney => "llama",
betty => "alpaca",
wilma => "alpaca",
jetsons => {
husband => "george",
wife => "jane",
"his boy" => "elroy",
},
);
$c = $h_nest{"jetsons"}{"wife"}; # $c = jane
$j = "jetsons"; $w = "wife";
$c = $h_nest{$j}{$w}; # same thing
$jet = $h_nest("jetsons"}; # $jet has a hash
$d = $jet{"husband"}; # $d = george
25. Perl ABC Data Access
Reference
# Create some variables
$a = "mama mia";
@array = (10, 20);
%hash = ("laurel" => "hardy", "nick" => "nora");
# Now create references to them
$r_a = $a; # $ra now "refers" to (points to) $a
$r_array = @array;
$r_hash = %hash;
26. Perl ABC Data Access
Access Reference Data
# Now create references to them
$r_a = $a; # $ra now "refers" to (points to) $a
$r_array = @array;
$r_hash = %hash;
# Now access the referenced data
$r_a; # the address
$$r_a; # the $a; "mama mia";
$r_array # the address
@$r_array # the array (10, 20);
@$r_array[1] # the element 20;
27. Perl ABC Data Access
Access Reference Data
# Now create references to them
$r_a = $a; # $ra now "refers" to (points to) $a
$r_array = @array;
$r_hash = %hash;
# Now access the referenced data
$r_a; # the address
$$r_a; # the $a; "mama mia";
$r_array # the address
@$r_array # the array (10, 20);
@$r_array[1] # the element 20;