Results for "DWIM Perl"

Wire posts

  • print "$^O\n"; To print the OS name in perl #Tipsoftheday #Perl #RegularExpression

    3933 days ago

  • Do you want to compile your Perl program without running it, try $ perl -c <program> #Tipsoftheday #Perl

    3905 days ago

  • Write something at the bottom of the file without opening it. perl -p -i -e 'eof && s/$/\nWord/;' <filename> #Tipsoftheday #Perloneliner

    3904 days ago

  • Perl for bioinformatics scripts ... useful scripts at http://tinyurl.com/n4z3egq #Perl #PerlScripts

    3902 days ago

  • To check: Does an array has all equal values. if (keys %{{ map {$_, 1} @test }} == 1) { # all equal } #Tipsoftheday #Perl

    3900 days ago

  • A quick guide to Perl http://tinyurl.com/mkmjtpv #Perl #QuickGuide

    3899 days ago

  • To get all the module dependencies for yourScript.pl program. $ scandeps.pl yourScript.pl #Perl #Tipsoftheday

    3898 days ago

  • Generate N base genome: perl -e '@b=qw/A T G C/;print ">Genome\n";while($l<N){print @b[int(rand(4))];$l++;}' #Tipsoftheday #Perl

    3886 days ago

  • To round a floating-point value to a certain number of decimal places: $rounded = sprintf("%.2f", $unrounded); #Tipsoftheday #Perl

    3894 days ago

  • Number all lines in a file; perl -pe '$_ = "$. $_"': #Tipsoftheday #Perl

    3885 days ago