Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[olive][b]while[/b][/olive][red]([/red]<DATA>[red])[/red][red]{[/red]
[red]s/[/red][purple]([purple][b]\$[/b][/purple]\w+)[/purple][red]/[/red][purple]makeshort([blue]$1[/blue])[/purple][red]/[/red][red]eg[/red][red];[/red]
[url=http://perldoc.perl.org/functions/print.html][black][b]print[/b][/black][/url][red];[/red]
[red]}[/red]
[url=http://perldoc.perl.org/functions/sub.html][black][b]sub[/b][/black][/url] [maroon]makeshort[/maroon] [red]{[/red]
[url=http://perldoc.perl.org/functions/my.html][black][b]my[/b][/black][/url] [blue]$v[/blue] = [url=http://perldoc.perl.org/functions/shift.html][black][b]shift[/b][/black][/url][red];[/red]
[blue]$v[/blue] =~ [red]tr/[/red][purple]_[/purple][red]/[/red][purple][/purple][red]/[/red][red]d[/red][red];[/red]
[url=http://perldoc.perl.org/functions/return.html][black][b]return[/b][/black][/url] [blue]$v[/blue][red];[/red]
[red]}[/red]
[teal]__DATA__[/teal]
[teal]#!/usr/bin/perl -w[/teal]
[teal]use strict;[/teal]
[teal]chdir('/home/johan/perlovn') or die "$!";[/teal]
[teal]my $long_variabel_name;[/teal]
[teal]while(<*>) {[/teal]
[teal] $long_variabel_name = $_;[/teal]
[teal] tr/A-Z/a-z/;[/teal]
[teal] rename $long_variabel_name, $_;[/teal]
[teal] }[/teal]
[teal]###after change[/teal]